home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c081_7 / 2.ddi / WEXAMPLE.ZIP / DLLSHELL.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-13  |  907 b   |  29 lines

  1. // Borland C++ - (C) Copyright 1991 by Borland International
  2.  
  3. // Example program used to demonstrate DLL's. This file one of the
  4. // files used to build BITMAP.DLL which is used in the DLLDEMO program.
  5.  
  6. #include <windows.h>
  7.  
  8. // Turn off warning: Parameter '' is never used
  9. #pragma argsused
  10.  
  11. // Every DLL has an entry point LibMain and an exit point WEP.
  12. int FAR PASCAL LibMain( HANDLE hInstance, WORD wDataSegment,
  13.                                    WORD wHeapSize, LPSTR lpszCmdLine )
  14. {
  15.     // The startup code for the DLL initializes the local heap (if there is one)
  16.     // with a call to LocalInit which locks the data segment.
  17.     if ( wHeapSize != 0 )
  18.         UnlockData( 0 );
  19.     return 1;   // Indicate that the DLL was initialized successfully.
  20. }
  21.  
  22. // Turn off warning: Parameter '' is never used
  23. #pragma argsused
  24.  
  25. int FAR PASCAL WEP ( int bSystemExit )
  26. {
  27.     return 1;
  28. }
  29.