欢迎来到天天文库
浏览记录
ID:51709979
大小:54.00 KB
页数:15页
时间:2020-03-15
《点对点交谈的服务器程序.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、点对点交谈的服务器程序//talks.h:mainheaderfilefortheTALKSapplication#if!defined(AFX_TALKS_H__A2EF205B_CB6F_438F_BB7B_23168390D760__INCLUDED_)#defineAFX_TALKS_H__A2EF205B_CB6F_438F_BB7B_23168390D760__INCLUDED_#if_MSC_VER>1000#pragmaonce#endif//_MSC_VER>1000#ifndef__AFXWIN_H__#errori
2、nclude'stdafx.h'beforeincludingthisfileforPCH#endif#include"resource.h"//mainsymbols///////////////////////////////////////////////////////////////////////////////CTalksApp://Seetalks.cppfortheimplementationofthisclassclassCTalksApp:publicCWinApp{public:CTalksApp();//Ove
3、rrides//ClassWizardgeneratedvirtualfunctionoverrides//{{AFX_VIRTUAL(CTalksApp)public:virtualBOOLInitInstance();//}}AFX_VIRTUAL//Implementation//{{AFX_MSG(CTalksApp)//NOTE-theClassWizardwilladdandremovememberfunctionshere.//DONOTEDITwhatyouseeintheseblocksofgeneratedcode!
4、//}}AFX_MSGDECLARE_MESSAGE_MAP()};///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}//MicrosoftVisualC++willinsertadditionaldeclarationsimmediatelybeforethepreviousline.#endif//!defined(AFX_TALKS_H__A2EF205B_CB6F_438F_B
5、B7B_23168390D760__INCLUDED_)//talks.cpp:Definestheclassbehaviorsfortheapplication.#include"stdafx.h"#include"talks.h"#include"talksDlg.h"#ifdef_DEBUG#definenewDEBUG_NEW#undefTHIS_FILEstaticcharTHIS_FILE[]=__FILE__;#endif///////////////////////////////////////////////////
6、////////////////////////////CTalksAppBEGIN_MESSAGE_MAP(CTalksApp,CWinApp)//{{AFX_MSG_MAP(CTalksApp)//NOTE-theClassWizardwilladdandremovemappingmacroshere.//DONOTEDITwhatyouseeintheseblocksofgeneratedcode!//}}AFX_MSGON_COMMAND(ID_HELP,CWinApp::OnHelp)END_MESSAGE_MAP()////
7、///////////////////////////////////////////////////////////////////////////CTalksAppconstructionCTalksApp::CTalksApp(){//TODO:addconstructioncodehere,//PlaceallsignificantinitializationinInitInstance}///////////////////////////////////////////////////////////////////////
8、////////TheoneandonlyCTalksAppobjectCTalksApptheApp;///////////////////////////////////////////////////
此文档下载收益归作者所有