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

Visual C++

  1. // Abc.cpp : Implementation of CAbc
  2. #include "stdafx.h"
  3. #include "MyAbc.h"
  4. #include "Abc.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CAbc
  7. STDMETHODIMP CAbc::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_WriteLog(str.AllocSysString());
  15. return S_OK;
  16. }