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

InstallShield for Visual C++, DLL


2 replies to this topic

corentin.biette

corentin.biette
  • Members
  • 10 posts

Posted 16 May 2002 - 14:45

I would like to get the DLL file that goes with the help example sample for  the function :

CallDLLFx(szDLL, szFunction, IvValue, svValue).

The help says that this INstallShield functionis going to interact with a DLL function :

LONG APIENTRY Test (HWND hwnd, LPLONG lpIValue, LPSTR lpszValue)

thank you,

( I dont know many things about DLLs)

Corentin

anthonyh

anthonyh
  • Full Members
  • 93 posts

Posted 17 May 2002 - 23:11

What exactly do you need to do? Calling a function from a dll in most cases is fairly simple.



Anthony
Product Availability Developer
Avantis
Invensys Process Systems

Using InstallShield Developer 7.04 - Basic Project

corentin.biette

corentin.biette
  • Members
  • 10 posts

Posted 29 May 2002 - 13:35

thats OK nox, I was trying to get a sample to insert in a DLL to run the Example provided by visual Studio for CallDLLFx, here is the answer (simple, it's true) :

LONG __declspec (dllexport) FunctionToExport (HWND hwnd, LPLONG lpIvalue, LPSTR lpszValue){

hwnd = NULL;
*lpIvalue = 007;
strcpy(lpszValue,"Let See");
return 0;
}

thanks anthony anyway!