myappserver_interfaceimpl.cpp
来自「bcb应用开发技术解析 包括多线程」· C++ 代码 · 共 40 行
CPP
40 行
#include <vcl.h>
#pragma hdrstop
#include "MYAPPSERVER_INTERFACEIMPL.H"
#if !defined(__PRAGMA_SMART_INIT_DEFINED)
#define __PRAGMA_SMART_INIT_DEFINED
#pragma package(smart_init)
#endif
#pragma resource "*.dfm"
/////////////////////////////////////////////////////////////////////////////
// Global instance of TMyAppServer_InterfaceImpl
/////////////////////////////////////////////////////////////////////////////
TMyAppServer_Interface *MyAppServer_Interface;
/////////////////////////////////////////////////////////////////////////////
// TMyAppServer_Interface::TMyAppServer_Interface
/////////////////////////////////////////////////////////////////////////////
__fastcall TMyAppServer_Interface::TMyAppServer_Interface(TComponent* Owner) : TCRemoteDataModule(Owner)
{
}
STDMETHODIMP TMyAppServer_InterfaceImpl::SetSQL(BSTR sSQL)
{
m_DataModule->Query1->Close();
m_DataModule ->Query1->SQL->Clear();
m_DataModule ->Query1->SQL->Add(sSQL);
m_DataModule ->Query1->Open();
return S_OK;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?