init
This commit is contained in:
43
Servers/服务器组件/协调服务器/CorrespondServer.cpp
Normal file
43
Servers/服务器组件/协调服务器/CorrespondServer.cpp
Normal file
@@ -0,0 +1,43 @@
|
||||
#include "Stdafx.h"
|
||||
#include "CorrespondServer.h"
|
||||
#include "CorrespondServerDlg.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//程序对象
|
||||
CCorrespondServerApp theApp;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
BEGIN_MESSAGE_MAP(CCorrespondServerApp, CWinApp)
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//构造函数
|
||||
CCorrespondServerApp::CCorrespondServerApp()
|
||||
{
|
||||
}
|
||||
|
||||
//启动函数
|
||||
BOOL CCorrespondServerApp::InitInstance()
|
||||
{
|
||||
__super::InitInstance();
|
||||
|
||||
//设置组件
|
||||
AfxInitRichEdit2();
|
||||
InitCommonControls();
|
||||
AfxEnableControlContainer();
|
||||
|
||||
//设置注册表
|
||||
SetRegistryKey(szProduct);
|
||||
|
||||
//显示窗口
|
||||
CCorrespondServerDlg CorrespondServerDlg;
|
||||
m_pMainWnd=&CorrespondServerDlg;
|
||||
CorrespondServerDlg.DoModal();
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
Reference in New Issue
Block a user