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

Installscript and DLLs


1 reply to this topic

tsquared

tsquared
  • Members
  • 6 posts

Posted 03 June 2003 - 22:40

Hi,

I am using ISDev 7.02 and trying to call a function in a DLL from a Standard Project, but not sure how to do it. According to the Developer Help, I would use the functions UseDLL, CallDLLFx, and UnUseDLL. However, there is some sample code under "UseDLL" that does not call "CallDLLFx", but instead calls the DLL function directly. Any idea what is the correct way?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 04 June 2003 - 07:08

You don't use CallDLLFx. Instead you prototype your DLL function in the script, then load the DLL with UseDLL. Now you can directly call your DLL function. Finally you unload the DLL with UnUseDLL.

CallDLLFx is only for the situation where you don't know the DLL function (and therefore can't prototype it) at the time you write your script.