Page 1 of 2 12 LastLast
Results 1 to 5 of 8

Thread: Failed to find dll funtion error message (0x80040703)

  1. #1
    Join Date
    Aug 2004
    Location
    VA, US
    Posts
    21

    Question Failed to find dll funtion error message (0x80040703)

    I've scoured the help and threads for this but can't find anything.

    I've built a VB 6.0 dll with a simple function:

    Public Function Test() As Boolean
    MsgBox ("hello")
    End Function

    I load the dll successfully using UseDLL(), but get "Failed to find dll function"when I call Test();

    The dll is: MemberPortal.dll

    I have:
    prototype stdcall BOOL MemberPortal.Test();
    declared in my script file, and call by:

    bResult = MemberPortal.Test();

    Thee dll is included in the SupportFiles area.

    Any help is greatly appreciated.

    Thanks - Ben

    I should mention I'm using the EVAL version of ISX at the moment.
    Last edited by BenSaw; 08-20-2004 at 01:52 PM.

  2. #2
    Join Date
    Oct 2001
    Location
    Here and there
    Posts
    16,243
    Visual Basic DLLs don't export functions the same way that C/C++ DLLs do, and UseDLL is for C-callable DLLs.

    For COM DLLs created with Visual Basic, the idea is that you'll need to register the DLL, call CoCreateObject in your script to create an object variable, call methods in your DLL, and then perhaps unregister the DLL. For the overall idea, please see www.installsite.org > InstallScript Samples > External Programs and Shell > Using a VisualBasic DLL in IS6.

  3. #3
    Join Date
    Aug 2004
    Location
    VA, US
    Posts
    21
    Excellent!

    Thank You, Robert

    - Ben

  4. #4
    Join Date
    Oct 2004
    Posts
    113

    Exclamation

    Robert,

    Will the suggestion you pointed out work for VB.NET?

    C.

  5. #5
    Join Date
    Aug 2004
    Location
    VA, US
    Posts
    21
    Chris - If vb.net isn't possible I have some C++.net code if you want to look at it. The hardest part was tweaking a few settings in the project to export the code correctly.

    - Ben

Page 1 of 2 12 LastLast

Posting Permissions

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