home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / mfc / src / oleexp.cpp < prev    next >
C/C++ Source or Header  |  1998-06-16  |  1KB  |  45 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. #include "stdafx.h"
  12.  
  13. #ifdef _DEBUG
  14. #undef THIS_FILE
  15. static char THIS_FILE[] = __FILE__;
  16. #endif
  17.  
  18. #define new DEBUG_NEW
  19.  
  20. #ifdef AFX_CORE1_SEG
  21. #pragma code_seg(AFX_CORE1_SEG)
  22. #endif
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // DllGetClassObject
  26.  
  27. extern "C"
  28. STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
  29. {
  30.     AFX_MANAGE_STATE(AfxGetStaticModuleState());
  31.     return AfxDllGetClassObject(rclsid, riid, ppv);
  32. }
  33.  
  34. /////////////////////////////////////////////////////////////////////////////
  35. // DllCanUnloadNow
  36.  
  37. extern "C"
  38. STDAPI DllCanUnloadNow(void)
  39. {
  40.     AFX_MANAGE_STATE(AfxGetStaticModuleState());
  41.     return AfxDllCanUnloadNow();
  42. }
  43.  
  44. /////////////////////////////////////////////////////////////////////////////
  45.