AGCGame.cpp 690 B

123456789101112131415161718192021222324252627282930313233
  1. /////////////////////////////////////////////////////////////////////////////
  2. // AGCGame.cpp : Implementation of CAGCGame
  3. //
  4. #include "pch.h"
  5. #include "AGCGame.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CAGCGame
  8. TC_OBJECT_EXTERN_NON_CREATEABLE_IMPL(CAGCGame)
  9. /////////////////////////////////////////////////////////////////////////////
  10. // ISupportErrorInfo Interface Methods
  11. STDMETHODIMP CAGCGame::InterfaceSupportsErrorInfo(REFIID riid)
  12. {
  13. static const IID* arr[] =
  14. {
  15. &IID_IAGCGame
  16. };
  17. for (int i=0; i < sizeof(arr) / sizeof(arr[0]); i++)
  18. {
  19. if (InlineIsEqualGUID(*arr[i],riid))
  20. return S_OK;
  21. }
  22. return S_FALSE;
  23. }