MyAbc.cpp
Upload User: weisheen
Upload Date: 2022-07-09
Package Size: 19390k
Code Size: 0k
Development Platform:

Visual C++

  1. // MyAbc.cpp : Implementation of CMyAbc
  2. #include "stdafx.h"
  3. #include "EventDemo.h"
  4. #include "MyAbc.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CMyAbc
  7. STDMETHODIMP CMyAbc::add(int a, int b, int *c)
  8. {
  9. AFX_MANAGE_STATE(AfxGetStaticModuleState())
  10. // TODO: Add your implementation code here
  11. *c=a+b;
  12. CString str;
  13. str.Format("%d",*c);
  14. this->Fire_OnLog(str.AllocSysString());
  15. return S_OK;
  16. }