Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2003
    Posts
    3

    Grin 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. #2
    Join Date
    Jan 2000
    Posts
    2,002

    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.

  3. #3
    Join Date
    Jan 2003
    Posts
    3

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

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

  4. #4
    Join Date
    Jan 2000
    Posts
    2,002

    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.

  5. #5
    Join Date
    Jan 2003
    Posts
    3

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts