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


2 replies to this topic

hasee

hasee
  • Members
  • 2 posts

Posted 09 October 2003 - 13:01

hi, im trying to call a dll function through install shield 5.5 but having some errors while declaring dll function. this is the code

prototype STRING SerialKey.GetProductNo();

and in vc function is

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

CAN ANY1 PLZ SOLVE MY PROBLEM

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 October 2003 - 14:11

Moved to Professional 5.5 forum

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 October 2003 - 14:12

I don't think you can return a string from a dll as return value. You would have to return it in a parameter.