【VC开源代码栏目提醒】:网学会员--在 VC开源代码编辑为广大网友搜集整理了:001.cpp绩等信息,祝愿广大网友取得需要的信息,参考学习。
// 001.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "001.h"
#include "001Dlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMy001App
BEGIN_MESSAGE_MAP(CMy001App, CWinApp)
//{{AFX_MSG_MAP(CMy001App)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMy001App construction
CMy001App::CMy001App()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMy001App object
CMy001App theApp;
/////////////////////////////////////////////////////////////////////////////
// CMy001App initialization
BOOL CMy001App::InitInstance()
{
AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls();
#else
Enable3dControlsStatic()
#endif
//初始化套接字
WSADATA wsd;
WSAStartup(MAKEWORD(2,2),&wsd);
CMy001Dlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
return FALSE;
}
上一篇:
说明.java
下一篇:
她要是喜欢我