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

The dll call causes a corrupted stack


2 replies to this topic

Tomek

Tomek
  • Members
  • 5 posts

Posted 07 March 2001 - 16:47

ISWI custom action calls dll function. There are no problems when function hasn't parameters.
Dll causes a corrupted stack when function has parameters.
When I am using "__stdcall" declaration in dll, my function is not recognized by ISWI. It is probably not exported from dll. Any suggestions?

Thanks for help.

Tomek


EricFowler

EricFowler
  • Members
  • 2 posts

Posted 31 March 2001 - 22:49

Here is how I got around that:
--Declare fxn as __stdcall (required). You can do this in Project settings or where fxn is declared.
--Strip the 'extern "C" ' stuff from your fxn. It is no help with __stdcall I am told
--In project settings --> link, tell it to generate a mapfile.
-- Build your DLL. Fetch decorated name of fxn from mapfile. Use that to build your custom action.

My custom action looks like this:
NUMBER=[MyVar] swsetup::?InstallDriverFiles@@YGHPBD@Z(in STRING="nascsipt.inf")

Note decorated fxn name.