Jump to content


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.
Photo

DLL error 1603


2 replies to this topic

tsquared

tsquared
  • Members
  • 6 posts

Posted 04 June 2003 - 16:56

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!


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 04 June 2003 - 19:39

Try and explicitly specify the calling convention (cdecl or stdcall)

tsquared

tsquared
  • Members
  • 6 posts

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.