Hello everyone,
Please help me on this question.
I want to call a DLL function from my InstallShield script (I am using InstallShield Developer 7.0). The function is defined in a.dll, and a.dll requires some functions in b.dll.
I added a.dll and b.dll into Setup Files/Billboard and then do this in my InstallShield script:
//start
prototype cdecl a.func1(byref string);
....
if (0 != UseDLL(SUPPORTDIR ^ "b.dll")) then MessageBox(...) endif;
if (0 != UseDLL(SUPPORTDIR ^ "a.dll")) then MessageBox(...) endif;
func1(nvString);
UnUseDLL("a.dll");
UnUseDLL("b.dll");
....
//end.
When I debug the script, it fails at the function call
func1(nvString);
with a message box saying that:
Error: 0x....
Failed to load dll: a
Is that because a.dll could not find b.dll on execution the function func1()? Or any possible reason?
I really appreciate your help on this.
-- Phuong Nguyen
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.

DLL loading in InstallShield
Started by
pnguyen
, Jun 07 2002 23:42
2 replies to this topic
Posted 08 June 2002 - 19:45
I guess this is the "Standard" project type so I'm moving the question to that group.
Stefan Krüger
InstallSite.org twitter facebook
Posted 08 June 2002 - 19:46
Take a look at your a.dll with a tool like Dependency Walker - maybe your function names are mangled.
Stefan Krüger
InstallSite.org twitter facebook