📄 myappserver_multimodule_mainimpl.h
字号:
// MYAPPSERVER_MULTIMODULE_MAINIMPL.H : Declaration of the MyAppServer_MultiModule_Main
#ifndef MyAppServer_MultiModule_MainImplH
#define MyAppServer_MultiModule_MainImplH
#define ATL_FREE_THREADED
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <MidConst.hpp>
#include "Project1_TLB.H"
#include <DB.hpp>
#include <DBTables.hpp>
#include <Provider.hpp>
#include <atl/atlvcl.h>
// Forward ref. of IAppServer implementor
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
class TMyAppServer_MultiModule_Main : public TCRemoteDataModule
{
__published: // IDE-managed Components
TTable *Table1;
TSession *Session1;
TDataSetProvider *DataSetProvider1;
private: // User declarations
public: // User declarations
__fastcall TMyAppServer_MultiModule_Main(TComponent* Owner);
__published:
};
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
extern PACKAGE TMyAppServer_MultiModule_Main *MyAppServer_MultiModule_Main;
/////////////////////////////////////////////////////////////////////////////
// TMyAppServer_MultiModule_MainImpl Implements IMyAppServer_MultiModule_Main, default interface of MyAppServer_MultiModule_Main
// ThreadingModel : Apartment
// Dual Interface : TRUE
// Event Support : FALSE
// Default ProgID : Project1.MyAppServer_MultiModule_Main
// Description :
/////////////////////////////////////////////////////////////////////////////
class ATL_NO_VTABLE TMyAppServer_MultiModule_MainImpl: REMOTEDATAMODULE_IMPL(TMyAppServer_MultiModule_MainImpl, MyAppServer_MultiModule_Main, TMyAppServer_MultiModule_Main, IMyAppServer_MultiModule_Main)
{
public:
BEGIN_COM_MAP(TMyAppServer_MultiModule_MainImpl)
RDMOBJECT_COM_INTERFACE_ENTRIES(IMyAppServer_MultiModule_Main)
END_COM_MAP()
// Data used when registering Object
//
DECLARE_THREADING_MODEL(otApartment);
DECLARE_PROGID(_T("Project1.MyAppServer_MultiModule_Main"));
DECLARE_DESCRIPTION(_T(""));
// Function invoked to (un)register object
//
static HRESULT WINAPI UpdateRegistry(BOOL bRegister)
{
TRemoteDataModuleRegistrar regObj(GetObjectCLSID(), GetProgID(), GetDescription());
// Disable these flags in order to disable use by socket or web connections.
// Also set other flags to configure the behavior of your application server.
// For more information, see atlmod.h and atlvcl.cpp.
regObj.Singleton = false;
regObj.EnableWeb = true;
regObj.EnableSocket = true;
return regObj.UpdateRegistry(bRegister);
}
// IMyAppServer_MultiModule_Main
protected:
STDMETHOD(get_ChildRDM(IMyAppServer_MultiModule_Child** Value));
};
#endif // MyAppServer_MultiModule_MainImplH
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -