📄 activexi.cpp
字号:
// activexI.cpp : Implementation of CSeverApp and DLL registration.
#include "stdafx.h"
#include "sever.h"
#include "activexI.h"
/////////////////////////////////////////////////////////////////////////////
//
STDMETHODIMP activexI::InterfaceSupportsErrorInfo(REFIID riid)
{
static const IID* arr[] =
{
&IID_IactivexI,
};
for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
{
if (InlineIsEqualGUID(*arr[i],riid))
return S_OK;
}
return S_FALSE;
}
STDMETHODIMP activexI::get_total(long *pVal)
{
// TODO: Add your implementation code here
*pVal=this->total;
return S_OK;
}
STDMETHODIMP activexI::put_total(long newVal)
{
// TODO: Add your implementation code here
this->total=newVal;
return S_OK;
}
STDMETHODIMP activexI::sum(long x, long y)
{
// TODO: Add your implementation code here
this->total=x+y;
return S_OK;
}
STDMETHODIMP activexI::sim(long x, long y)
{
// TODO: Add your implementation code here
this->total=x-y;
return S_OK;
}
STDMETHODIMP activexI::cheng(long x, long y)
{
// TODO: Add your implementation code here
this->total=x*y;
return S_OK;
}
STDMETHODIMP activexI::chu(long x, long y)
{
// TODO: Add your implementation code here
this->total=x/y;
return S_OK;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -