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.

Invoking a dll function

2 replies to this topic


  • Full Members
  • 2 posts

Posted 14 July 2010 - 08:02

Hi All,

I am using InstallShield Professional 5.3. I need to invoke "getDevicePool" function which is defined in "InstallUtil" class of the "InsightRegister" dll, from my install script "setup.rul".

I have attached the code for DLL. And below in the code snippets to invoke that function.

prototype string InsightRegister.getDevicePool(BYREF STRING, NUMBER, BYVAL STRING);

//Load DLL in the memory.
dllLoadResult = UseDLL (SUPPORTDIR ^ "InsightRegister.dll");
if (dllLoadResult != 0)
MessageBox ("DLL load failed.", SEVERE);

szOCSConns = getDevicePool(szHostName, 5, "InsightForOCS");

The project is building fine. But when I run the setup, it throws error :-

Failed to find DLL function : InsightRegister.getDevicePool

Any sort of help to achieve the desired result is highly appreciated.



  • Full Members
  • 2 posts

Posted 14 July 2010 - 10:10

Sorry the version is Install shield professional 6.3, not 5.3

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 14 July 2010 - 15:40

The problem is likely a mismatch in the function prototype, so I recommend using Microsoft's Dependency Walker to look at the DLL and confirm it.
user posted image