home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ - (C) Copyright 1991 by Borland International
-
- // Example program used to demonstrate DLL's. This file one of the
- // files used to build BITMAP.DLL which is used in the DLLDEMO program.
-
- #include <windows.h>
-
- // Turn off warning: Parameter '' is never used
- #pragma argsused
-
- // Every DLL has an entry point LibMain and an exit point WEP.
- int FAR PASCAL LibMain( HANDLE hInstance, WORD wDataSegment,
- WORD wHeapSize, LPSTR lpszCmdLine )
- {
- // The startup code for the DLL initializes the local heap (if there is one)
- // with a call to LocalInit which locks the data segment.
- if ( wHeapSize != 0 )
- UnlockData( 0 );
- return 1; // Indicate that the DLL was initialized successfully.
- }
-
- // Turn off warning: Parameter '' is never used
- #pragma argsused
-
- int FAR PASCAL WEP ( int bSystemExit )
- {
- return 1;
- }