home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
caway349.zip
/
BIN
/
DEXDLL.ZIP
/
DEXDLL.C
next >
Wrap
C/C++ Source or Header
|
1996-04-16
|
576b
|
27 lines
int main(int reason)
{
int result;
if (!reason) {
printf("DLL startup...\n"); // DLL initialisation.
/* return zero to let the load continue */
result=0;
} else {
printf("DLL shutdown...\n"); // DLL clean up.
}
return(result);
}
extern char *MainToDLLCharStar;
extern int MainToDLLInt;
void __export _cdecl SayHello( char * message)
{
printf("Received DLL Message: ");
printf(message);
CalledByDLL("Nothing much!\n");
printf("Show main module variables in DLL module:\n");
printf("%s -- %d\n",MainToDLLCharStar,MainToDLLInt);
}