Announcement

Collapse
No announcement yet.

Failed to call DLL function. (#2, Line 1)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Failed to call DLL function. (#2, Line 1)

    I need to call a function from a dll. But all I get is this eror

    Failed to call DLL function. (#2, Line 1)
    Could not find function.
    I wrote that dll in VB6.0.
    There is only one function and I am sure that I
    use the right name to call it. The return value is String,
    the same as I set in SF.
    What could be wrong here?

    Thanks.

  • #2
    Re: Failed to call DLL function. (#2, Line 1)

    I would suspect that it is something to do with the way that VB names the functions for export. Do some research about making VB DLLs that can be called from C++. Since AMS40 uses C++ to call the DLL functions, that information may help you create more compliant DLLs.

    Comment


    • #3
      Re: Failed to call DLL function. (#2, Line 1)

      Do you thiks that if I used C++ it would work better?

      Comment


      • #4
        Re: Failed to call DLL function. (#2, Line 1)

        From my experience, yes C++ is the best language for writing DLLs. I made a tutorial that you can read here to get you going.

        Comment


        • #5
          Re: Failed to call DLL function. (#2, Line 1)

          Thanks, Brett. I will definetely read your tutorial, but I aleady have a dll written in c++ and I am getting the same error.
          I use Call DLL Function statement accordingly to FO help, so
          I am quite puzzled about the reason fon the error.

          Comment

          Working...
          X