oleexp.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #include "stdafx.h"
  11. #ifdef _DEBUG
  12. #undef THIS_FILE
  13. static char THIS_FILE[] = __FILE__;
  14. #endif
  15. #define new DEBUG_NEW
  16. #ifdef AFX_CORE1_SEG
  17. #pragma code_seg(AFX_CORE1_SEG)
  18. #endif
  19. /////////////////////////////////////////////////////////////////////////////
  20. // DllGetClassObject
  21. extern "C"
  22. STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
  23. {
  24. AFX_MANAGE_STATE(AfxGetStaticModuleState());
  25. return AfxDllGetClassObject(rclsid, riid, ppv);
  26. }
  27. /////////////////////////////////////////////////////////////////////////////
  28. // DllCanUnloadNow
  29. extern "C"
  30. STDAPI DllCanUnloadNow(void)
  31. {
  32. AFX_MANAGE_STATE(AfxGetStaticModuleState());
  33. return AfxDllCanUnloadNow();
  34. }
  35. /////////////////////////////////////////////////////////////////////////////