-
大小: 2.05MB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2021-01-09
- 語言: C/C++
- 標(biāo)簽: VC++??網(wǎng)絡(luò)編程??游戲編程??中國象棋??
資源簡介
基于VC++ ,最簡單的游戲程序,有注釋,是個(gè)學(xué)習(xí)網(wǎng)絡(luò)編程的極好例子
代碼片段和文件信息
//?blocksock.cpp?(CBlockingSocketException?CBlockingSocket?CHttpBlockingSocket)
#include?
#include?“blocksocket.h“
//?Class?CBlockingSocketException
//?Download?by?http://www.codefans.net
IMPLEMENT_DYNAMIC(CBlockingSocketException?CException)
CBlockingSocketException::CBlockingSocketException(char*?pchMessage)
{
m_strMessage?=?pchMessage;
m_nError?=?WSAGetLastError();
}
BOOL?CBlockingSocketException::GetErrorMessage(LPTSTR?lpstrError?UINT?nMaxError
PUINT?pnHelpContext?/*=?NULL*/)
{
char?text[200];
if(m_nError?==?0)?{
wsprintf(text?“%s?error“?(const?char*)?m_strMessage);
}
else?{
wsprintf(text?“%s?error?#%d“?(const?char*)?m_strMessage?m_nError);
}
strncpy(lpstrError?text?nMaxError?-?1);
return?TRUE;
}
//?Class?CBlockingSoc
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????9175??2009-09-20?18:36??遠(yuǎn)程下中國象棋\blocksocket.cpp
?????文件???????3715??2000-07-07?13:17??遠(yuǎn)程下中國象棋\blocksocket.h
?????文件??????45924??2009-09-20?18:33??遠(yuǎn)程下中國象棋\chess.aps
?????文件???????3342??2009-09-20?18:33??遠(yuǎn)程下中國象棋\chess.clw
?????文件???????4326??2009-09-20?18:36??遠(yuǎn)程下中國象棋\chess.cpp
?????文件???????4288??2000-08-16?14:47??遠(yuǎn)程下中國象棋\chess.dsp
?????文件????????533??2000-07-05?09:13??遠(yuǎn)程下中國象棋\chess.dsw
?????文件???????1345??2000-07-05?09:13??遠(yuǎn)程下中國象棋\chess.h
?????文件??????74752??2010-03-06?11:03??遠(yuǎn)程下中國象棋\chess.ncb
?????文件??????48640??2010-03-06?11:03??遠(yuǎn)程下中國象棋\chess.opt
?????文件???????3313??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess.plg
?????文件??????13407??2000-07-12?15:28??遠(yuǎn)程下中國象棋\chess.rc
?????文件???????8293??2009-09-20?18:36??遠(yuǎn)程下中國象棋\ChessArray.cpp
?????文件???????1937??2000-07-11?15:46??遠(yuǎn)程下中國象棋\ChessArray.h
?????文件???????1922??2000-07-06?09:52??遠(yuǎn)程下中國象棋\chessDoc.cpp
?????文件???????1517??2000-07-06?09:52??遠(yuǎn)程下中國象棋\chessDoc.h
?????文件??????18762??2009-09-20?18:36??遠(yuǎn)程下中國象棋\chessView.cpp
?????文件???????3222??2000-08-16?14:44??遠(yuǎn)程下中國象棋\chessView.h
?????文件??????64633??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess___Win32_Release\blocksocket.obj
?????文件?????196735??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess___Win32_Release\chess.exe
?????文件?????512584??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess___Win32_Release\chess.ilk
?????文件??????23787??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess___Win32_Release\chess.obj
?????文件????5577584??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess___Win32_Release\chess.pch
?????文件?????476160??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess___Win32_Release\chess.pdb
?????文件??????23772??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess___Win32_Release\chess.res
?????文件??????35388??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess___Win32_Release\ChessArray.obj
?????文件??????15867??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess___Win32_Release\chessDoc.obj
?????文件??????91614??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess___Win32_Release\chessView.obj
?????文件??????11947??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess___Win32_Release\client.obj
?????文件??????14199??2010-03-06?11:02??遠(yuǎn)程下中國象棋\chess___Win32_Release\IpAddress.obj
............此處省略30個(gè)文件信息
評(píng)論
共有 條評(píng)論