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
I load the dll successfully using UseDLL(), but get "Failed to find dll function"when I call Test();
The dll is: MemberPortal.dll
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.
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.
Thank You, Robert
Will the suggestion you pointed out work for VB.NET?
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.