📄 mathe.cpp
字号:
// Mathe.cpp : CMathe 的实现
#include "stdafx.h"
#include "Mathe.h"
#include ".\mathe.h"
// CMathe
//IMathe
STDMETHODIMP CMathe::Add(LONG n1, LONG n2, LONG* pnVal)
{
*pnVal = n1 + n2;
return S_OK;
}
// IStr
STDMETHODIMP CMathe::Cat(BSTR s1, BSTR s2, BSTR* psVal)
{
CComBSTR s( s1 );
s.AppendBSTR( s2 );
*psVal = s.Copy();
return S_OK;
}
// IMathe2
STDMETHODIMP CMathe::Mul(LONG n1, LONG n2, LONG* pnVal)
{
*pnVal = n1 * n2;
return S_OK;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -