home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / classsrc.pak / CLASMAIN.CPP < prev    next >
C/C++ Source or Header  |  1997-07-23  |  1KB  |  32 lines

  1. /*------------------------------------------------------------------------*/
  2. /*                                                                        */
  3. /*  CLASMAIN.CPP                                                          */
  4. /*                                                                        */
  5. /*  Copyright (c) 1991, 1994 Borland International                        */
  6. /*  All Rights Reserved                                                   */
  7. /*                                                                        */
  8. /*  Provides the LibMain() function for the DLL version                   */
  9. /*  of the class libraries                                                */
  10. /*                                                                        */
  11. /*------------------------------------------------------------------------*/
  12.  
  13. #if !defined( __WINDOWS_H )
  14. #include <windows.h>
  15. #endif
  16.  
  17. #if defined(__WIN32__)
  18.  
  19. BOOL DllEntryPoint(HINSTANCE /*hInstance*/, DWORD /*flag*/, LPVOID)
  20. {
  21.     return 1;
  22. }
  23.  
  24. #else
  25.  
  26. extern "C" int FAR PASCAL LibMain( HANDLE, WORD, WORD, LPSTR )
  27. {
  28.     return 1;
  29. }
  30.  
  31. #endif
  32.