-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,663 changed files
with
305,512 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
<CodeBlocks_project_file> | ||
<FileVersion major="1" minor="6" /> | ||
<Project> | ||
<Option title="Client" /> | ||
<Option pch_mode="2" /> | ||
<Option compiler="gcc" /> | ||
<Build> | ||
<Target title="Debug Win32"> | ||
<Option output="./Debug/Client" prefix_auto="1" extension_auto="1" /> | ||
<Option object_output="./Debug/" /> | ||
<Option deps_output="./Debug/" /> | ||
<Option type="0" /> | ||
<Option compiler="gcc" /> | ||
<Compiler> | ||
<Add option="-g" /> | ||
<Add option="-DWIN32" /> | ||
<Add option="-D_DEBUG" /> | ||
<Add option="-D_WINDOWS" /> | ||
<Add option="-O0" /> | ||
<Add option="-Wall" /> | ||
</Compiler> | ||
<Linker> | ||
<Add library="winmm.lib" /> | ||
<Add library="comctl32.lib" /> | ||
<Add library="kernel32.lib" /> | ||
<Add library="user32.lib" /> | ||
<Add library="gdi32.lib" /> | ||
<Add library="winspool.lib" /> | ||
<Add library="comdlg32.lib" /> | ||
<Add library="advapi32.lib" /> | ||
<Add library="shell32.lib" /> | ||
<Add library="ole32.lib" /> | ||
<Add library="oleaut32.lib" /> | ||
<Add library="uuid.lib" /> | ||
<Add library="odbc32.lib" /> | ||
<Add library="odbccp32.lib" /> | ||
</Linker> | ||
</Target> | ||
<Target title="Release Win32"> | ||
<Option output="./Release/Client" prefix_auto="1" extension_auto="1" /> | ||
<Option object_output="./Release/" /> | ||
<Option deps_output="./Release/" /> | ||
<Option type="0" /> | ||
<Option compiler="gcc" /> | ||
<Compiler> | ||
<Add option="-DWIN32" /> | ||
<Add option="-DNDEBUG" /> | ||
<Add option="-D_WINDOWS" /> | ||
<Add option="-O1" /> | ||
<Add option="-Wall" /> | ||
</Compiler> | ||
<Linker> | ||
<Add option="-s" /> | ||
<Add library="winmm.lib" /> | ||
<Add library="comctl32.lib" /> | ||
<Add library="kernel32.lib" /> | ||
<Add library="user32.lib" /> | ||
<Add library="gdi32.lib" /> | ||
<Add library="winspool.lib" /> | ||
<Add library="comdlg32.lib" /> | ||
<Add library="advapi32.lib" /> | ||
<Add library="shell32.lib" /> | ||
<Add library="ole32.lib" /> | ||
<Add library="oleaut32.lib" /> | ||
<Add library="uuid.lib" /> | ||
<Add library="odbc32.lib" /> | ||
<Add library="odbccp32.lib" /> | ||
</Linker> | ||
</Target> | ||
</Build> | ||
<Unit filename="Client.cpp" /> | ||
<Unit filename="Client.h" /> | ||
<Unit filename="Client.rc"> | ||
<Option compilerVar="WINDRES" /> | ||
</Unit> | ||
<Unit filename="ClientDlg.cpp" /> | ||
<Unit filename="ClientDlg.h" /> | ||
<Unit filename="ClientSock.cpp" /> | ||
<Unit filename="ClientSock.h" /> | ||
<Unit filename="StdAfx.cpp" /> | ||
<Unit filename="StdAfx.h" /> | ||
<Unit filename="resource.h" /> | ||
<Extensions> | ||
<code_completion /> | ||
<envvars /> | ||
<debugger /> | ||
</Extensions> | ||
</Project> | ||
</CodeBlocks_project_file> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
; CLW file contains information for the MFC ClassWizard | ||
|
||
[General Info] | ||
Version=1 | ||
LastClass=CClientDlg | ||
LastTemplate=CSocket | ||
NewFileInclude1=#include "stdafx.h" | ||
NewFileInclude2=#include "Client.h" | ||
|
||
ClassCount=4 | ||
Class1=CClientApp | ||
Class2=CClientDlg | ||
Class3=CAboutDlg | ||
|
||
ResourceCount=3 | ||
Resource1=IDD_ABOUTBOX | ||
Resource2=IDR_MAINFRAME | ||
Class4=CClientSock | ||
Resource3=IDD_CLIENT_DIALOG | ||
|
||
[CLS:CClientApp] | ||
Type=0 | ||
HeaderFile=Client.h | ||
ImplementationFile=Client.cpp | ||
Filter=N | ||
|
||
[CLS:CClientDlg] | ||
Type=0 | ||
HeaderFile=ClientDlg.h | ||
ImplementationFile=ClientDlg.cpp | ||
Filter=D | ||
BaseClass=CDialog | ||
VirtualFilter=dWC | ||
LastObject=IDC_SENDCONTENT | ||
|
||
[CLS:CAboutDlg] | ||
Type=0 | ||
HeaderFile=ClientDlg.h | ||
ImplementationFile=ClientDlg.cpp | ||
Filter=D | ||
|
||
[DLG:IDD_ABOUTBOX] | ||
Type=1 | ||
Class=CAboutDlg | ||
ControlCount=4 | ||
Control1=IDC_STATIC,static,1342177283 | ||
Control2=IDC_STATIC,static,1342308480 | ||
Control3=IDC_STATIC,static,1342308352 | ||
Control4=IDOK,button,1342373889 | ||
|
||
[DLG:IDD_CLIENT_DIALOG] | ||
Type=1 | ||
Class=CClientDlg | ||
ControlCount=10 | ||
Control1=IDC_STATIC,button,1342177287 | ||
Control2=IDC_STATIC,static,1342308352 | ||
Control3=IDC_STATIC,static,1342308352 | ||
Control4=IDC_SERVERIP,edit,1350631552 | ||
Control5=IDC_PORT,edit,1350639744 | ||
Control6=IDC_CONNECT,button,1342242816 | ||
Control7=IDC_SENDCONTENT,edit,1350631552 | ||
Control8=IDC_IMAGE,static,1342177294 | ||
Control9=IDC_SEND,button,1342242816 | ||
Control10=IDC_INFOLIST,RICHEDIT,1353781444 | ||
|
||
[CLS:CClientSock] | ||
Type=0 | ||
HeaderFile=ClientSock.h | ||
ImplementationFile=ClientSock.cpp | ||
BaseClass=CSocket | ||
Filter=N | ||
VirtualFilter=uq | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// Client.cpp : Defines the class behaviors for the application. | ||
// | ||
|
||
#include "stdafx.h" | ||
#include "Client.h" | ||
#include "ClientDlg.h" | ||
|
||
#ifdef _DEBUG | ||
#define new DEBUG_NEW | ||
#undef THIS_FILE | ||
static char THIS_FILE[] = __FILE__; | ||
#endif | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// CClientApp | ||
|
||
BEGIN_MESSAGE_MAP(CClientApp, CWinApp) | ||
//{{AFX_MSG_MAP(CClientApp) | ||
// 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() | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// CClientApp construction | ||
|
||
CClientApp::CClientApp() | ||
{ | ||
// TODO: add construction code here, | ||
// Place all significant initialization in InitInstance | ||
} | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// The one and only CClientApp object | ||
|
||
CClientApp theApp; | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// CClientApp initialization | ||
|
||
BOOL CClientApp::InitInstance() | ||
{ | ||
AfxEnableControlContainer(); | ||
|
||
// Standard initialization | ||
// If you are not using these features and wish to reduce the size | ||
// of your final executable, you should remove from the following | ||
// the specific initialization routines you do not need. | ||
|
||
#ifdef _AFXDLL | ||
Enable3dControls(); // Call this when using MFC in a shared DLL | ||
#else | ||
Enable3dControlsStatic(); // Call this when linking to MFC statically | ||
#endif | ||
//³õʼ»¯Ì×½Ó×Ö | ||
WSADATA wsd; | ||
AfxSocketInit(&wsd); | ||
AfxInitRichEdit(); | ||
|
||
CClientDlg dlg; | ||
m_pMainWnd = &dlg; | ||
int nResponse = dlg.DoModal(); | ||
if (nResponse == IDOK) | ||
{ | ||
// TODO: Place code here to handle when the dialog is | ||
// dismissed with OK | ||
} | ||
else if (nResponse == IDCANCEL) | ||
{ | ||
// TODO: Place code here to handle when the dialog is | ||
// dismissed with Cancel | ||
} | ||
|
||
// Since the dialog has been closed, return FALSE so that we exit the | ||
// application, rather than start the application's message pump. | ||
return FALSE; | ||
} |
Oops, something went wrong.