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

Invoking DLL function


3 replies to this topic

Balamurugan

Balamurugan
  • Members
  • 2 posts

Posted 08 September 2004 - 10:29

Hi all,

Does anyone guide me to invoke a dll function from installscript.

I am using IS professional 6.22 version. Im receving an runtime error message saying that the "prototype gets mismatch". Im in need to send a integer value to a dll function and that arg should be send in BYREF and not BYVAL.

It will be helpfull to me, If anyone code some examples or refer a link.

Please suggest
Thanks
N.Balamurugan
www.codeminer.com

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 September 2004 - 13:11

Make sure you specify the proper calling convention (cdecl or stdcall)

Balamurugan

Balamurugan
  • Members
  • 2 posts

Posted 08 September 2004 - 14:09

Hi Stefan Krueger,

Thanks for the reply.

Im new to Installscript and VC++, could you please highlight some basic examples or some reference in help docs. I had read the InstallShield Help that avail with the product. Its not such understandable for a beginner ohmy.gif
Thanks
N.Balamurugan
www.codeminer.com

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 September 2004 - 20:29

cdecl or stdcall in your script prototype has to match the definition of your DLL function in C.