I'm calling a DLL from an ISDev 7.02 Standard Project, but I get "Error: -1603 Fatal error during installation." My DLL function looks like this:
SAMPLE_API long Test1(VOID)
{
return 42;
}
And my InstallScript looks like:
prototype LONG Sample.Test1();
function ExFn_UseDLL(hMSI)
LONG lResult;
...
nResult = UseDLL (szDLLName); // this succeeds.
lResult = Test1(); // got fatal error -1603
nResult = UnUseDLL (szDLLName); // this succeeds.
end;
I tried running with verbose logging, but the log didn't tell me anything. MSDN didn't tell me anything either.
Any help would be much appreciated!
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 error 1603
Started by
tsquared
, Jun 04 2003 16:56
2 replies to this topic
Posted 04 June 2003 - 19:39
Try and explicitly specify the calling convention (cdecl or stdcall)
Stefan Krüger
InstallSite.org twitter facebook
Posted 04 June 2003 - 22:13
I got it to work. I had to add a .DEF file to my DLL. Apparently, without this, C++ will decorate the name and the function will not be found.