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 "SmartPtrDemo.h"
  4. #include "MyAbc.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CMyAbc
  7. STDMETHODIMP CMyAbc::Hello(BSTR name, BSTR *bstrResult)
  8. {
  9. AFX_MANAGE_STATE(AfxGetStaticModuleState())
  10. // TODO: Add your implementation code here
  11. CString strTemp(name);
  12. ::SysFreeString(name);
  13. strTemp="Hello: "+strTemp;
  14. *bstrResult=strTemp.AllocSysString();
  15. return S_OK;
  16. }