44 lines
941 B
C++
44 lines
941 B
C++
#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;
|
|
}
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|