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

CALLING DLL FUNCTION FROM INSTALL SHIELD 5.5


1 reply to this topic

hasee

hasee
  • Members
  • 2 posts

Posted 10 October 2003 - 06:03

hi there,
i have made a regular DLL in visual C++ and want to call its function in install shield 5.5. here what i m doing

-------------------------------------------
#define DLL_FILE "SerialKey.DLL"

prototype STRING SerialKey.GetProductNo();

UseDLL(DLL_FILE);

STRING sKey = GetProductNo();

UnUseDLL(DLL_FILE);
--------------------------------------------

the dll is loading successfully but when i try to declare the dll function using prototype it is giving me error #8008 and 8022. in Visual C++ here is dll defination

extern "C" __declspec(dllexport) CString GetProductNo()
{
// function body
return sSerial;
}

can any 1 plz hel me so that i can work further more. thanx

bye


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 10 October 2003 - 15:08

I have moved your original question to the appropriate forum here. Please look there.