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

Visual C++

  1. // MyVariant.cpp : Implementation of CMyVariant
  2. #include "stdafx.h"
  3. #include "ExVariant.h"
  4. #include "MyVariant.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CMyVariant
  7. STDMETHODIMP CMyVariant::add(VARIANT a, VARIANT b, VARIANT *c)
  8. {
  9. AFX_MANAGE_STATE(AfxGetStaticModuleState())
  10. // TODO: Add your implementation code here
  11. c->vt=VT_I4;
  12. c->lVal=a.lVal+b.lVal;
  13. return S_OK;
  14. }