home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / caway349.zip / BIN / DLL.C < prev    next >
C/C++ Source or Header  |  1996-06-17  |  411b  |  34 lines

  1. int main(int reason)
  2. {
  3. int result;
  4.  
  5.     if (!reason) {
  6.  
  7.         /*
  8.         ** DLL initialisation.
  9.         */
  10.         printf("DLL startup...\n");
  11.  
  12.         /* return zero to let the load continue */
  13.         result=0;
  14.  
  15.     } else {
  16.  
  17.         /*
  18.         ** DLL clean up.
  19.         */
  20.         printf("DLL shutdown...\n");
  21.  
  22.     }
  23.  
  24. return(result);
  25. }
  26.  
  27.  
  28. void __export _cdecl SayHello( char * message)
  29. {
  30.     printf("Recieved DLL Message: ");
  31.     printf(message);
  32. }
  33.  
  34.