home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 5.ddi / WEXAMPLE.ZIP / DLLSHELL.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  933 b   |  30 lines

  1. // Borland C++ - (C) Copyright 1991, 1992 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. #define  STRICT
  7. #include <windows.h>
  8.  
  9. // Turn off warning: Parameter '' is never used
  10. #pragma argsused
  11.  
  12. // Every DLL has an entry point LibMain and an exit point WEP.
  13. int FAR PASCAL LibMain( HINSTANCE hInstance, WORD wDataSegment,
  14.                                    WORD wHeapSize, LPSTR lpszCmdLine )
  15. {
  16.     // The startup code for the DLL initializes the local heap (if there is one)
  17.     // with a call to LocalInit which locks the data segment.
  18.     if ( wHeapSize != 0 )
  19.         UnlockData( 0 );
  20.     return 1;   // Indicate that the DLL was initialized successfully.
  21. }
  22.  
  23. // Turn off warning: Parameter '' is never used
  24. #pragma argsused
  25.  
  26. int FAR PASCAL WEP ( int bSystemExit )
  27. {
  28.     return 1;
  29. }
  30.