📄 myautoobjimpl.cpp
字号:
// MYAUTOOBJIMPL : Implementation of TMyAutoObjImpl (CoClass: MyAutoObj, Interface: IMyAutoObj)
#include <vcl.h>
#pragma hdrstop
#include "MYAUTOOBJIMPL.H"
#include "Main.h"
/////////////////////////////////////////////////////////////////////////////
// TMyAutoObjImpl
STDMETHODIMP TMyAutoObjImpl::get_Text(long* Value)
{
try
{
*Value=frmMain->CSpinEdit1->Value;
}
catch(Exception &e)
{
return Error(e.Message.c_str(), IID_IMyAutoObj);
}
return S_OK;
};
STDMETHODIMP TMyAutoObjImpl::set_Text(long Value)
{
try
{
frmMain->CSpinEdit1->Value=Value;
}
catch(Exception &e)
{
return Error(e.Message.c_str(), IID_IMyAutoObj);
}
return S_OK;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -