Hi, Here's a problem I'm having.
I have a DLL written in VB, which runs some checks for me before transferring the files over.
I am calling it as follows
prototype e2kAppCk.Main();
...
nResult = UseDLL ("e2kAppCk.dll");
if nResult = 0 then
Main();
else
abort;
endif;
nResult = UnUseDLL("e2kAppCk.dll");
...
Now the UseDLL works, since the result is 0, but on the call to my function it gives me the following
//
Error Number: 0x80040703
Description: Failed to find dll function: e2kAppCk.Main
Setup will now terminate.
//
The Main function does in fact exist in the DLL and is public so it can be used (in fact I used to do this through a wrapper which I've since removed.)
Am I calling the DLL incorectly? Any suggestions would be a appreciated.
Phil
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Calling functions from VB DLL in InstallScript
Started by
SilentCry
, Jul 25 2002 16:30
2 replies to this topic
Posted 25 July 2002 - 20:33
Since it is a vb dll isn't it also a registered active x component? If I am right about this all you have to do is
function whatever
object oMyDLL
begin
oMyDLL = CreateObject("MyDLL.InterfaceName");
oMyDll.Main();
end;
This has worked for me on all of my DLLs I have created.
Hope this helps. Take Care.
function whatever
object oMyDLL
begin
oMyDLL = CreateObject("MyDLL.InterfaceName");
oMyDll.Main();
end;
This has worked for me on all of my DLLs I have created.
Hope this helps. Take Care.