📄 myinterface.cpp
字号:
// MyInterface.cpp: implementation of the CMyInterface class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "MyInterface.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CMyInterface::CMyInterface()
{
m_pMyClass = new CMyClass;
}
CMyInterface::~CMyInterface()
{
delete m_pMyClass;
}
//--------------------调用CMyClass中的FunctionA函数-----------------
CString CMyInterface::FunctionA()
{
return m_pMyClass->FunctionA();
}
//--------------------调用CMyClass中的FunctionB函数-----------------
CString CMyInterface::FunctionB()
{
return m_pMyClass->FunctionB();
}
//--------------------得到CMyClass中的str变量-----------------------
CString CMyInterface::GetString()
{
return m_pMyClass->str1;
}
//--------------------------The End---------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -