MFCSocketClient標頭檔案

2022-07-17 09:54:09 字數 3455 閱讀 6938

//

mfcsocketclient.h : project_name 應用程式的主標頭檔案

//#pragma once#ifndef __afxwin_h__

#error "在包含此檔案之前包含「stdafx.h」以生成 pch 檔案"

#endif

#include

"resource.h"//

主符號//

//有關此類的實現,請參閱 mfcsocketclient.cpp//;

: 標頭檔案

//#include "

socketclient.h

"#pragma once#include

"afxcmn.h"//

cmfcsocketclientdlg 對話方塊

class cmfcsocketclientdlg : public

cdialogex

;#endif

protected

:

virtual

void dodataexchange(cdataexchange* pdx); //

ddx/ddv 支援

//實現

protected

: hicon m_hicon;

//new added

csocketclient*psocketclient;

//生成的訊息對映函式

virtual

bool oninitdialog();

afx_msg

void

onsyscommand(uint nid, lparam lparam);

afx_msg

void

onpaint();

afx_msg hcursor onquerydragicon();

declare_message_map()

public

: cstring m_log;

cstring m_port;

cstring m_editrecv;

cstring m_editsend;

cipaddressctrl m_ip;

afx_msg

void

onbnclickedbuttonconnect();

afx_msg

void

onbnclickedbuttonsend();

hresult onlogmsg(wparam dwevent, lparam dwlen);

hresult onrecvmsg(wparam dwevent, lparam dwlen);

void

writelog(cstring log);

};

socketclient.h

#pragma once

#define maxsockbuf 1024

class csocketclient:public

casyncsocket

;

stdafx.h

//

stdafx.h : 標準系統包含檔案的包含檔案,

//或是經常使用但不常更改的

//特定於專案的包含檔案

#pragma once#ifndef vc_extralean

#define vc_extralean //

從 windows 頭中排除極少使用的資料

#endif

#include

"targetver.h

"#define _atl_cstring_explicit_constructors //

某些 cstring 建構函式將是顯式的

//關閉 mfc 對某些常見但經常可放心忽略的警告訊息的隱藏

#define _afx_all_warnings

#define wm_socket_log wm_user+200

#define wm_socket_receive wm_user+201#include

//mfc 核心元件和標準元件

#include //

mfc 擴充套件

#include

//mfc 自動化類

#include

//new added---------

#ifndef _afx_no_ole_support

#include

//mfc 對 internet explorer 4 公共控制項的支援

#endif

#ifndef _afx_no_afxcmn_support

#include

//mfc 對 windows 公共控制項的支援

#endif

//_afx_no_afxcmn_support

#include

//功能區和控制項條的 mfc 支援

#include #ifdef _unicode

#if defined _m_ix86

#pragma comment(linker,"/manifestdependency:\"type='win32' name='microsoft.windows.common-controls' version='6.0.0.0' processorarchitecture='x86' publickeytoken='6595b64144ccf1df' language='*'\"")

#elif defined _m_x64

#pragma comment(linker,"/manifestdependency:\"type='win32' name='microsoft.windows.common-controls' version='6.0.0.0' processorarchitecture='amd64' publickeytoken='6595b64144ccf1df' language='*'\"")

#else

#pragma comment(linker,"/manifestdependency:\"type='win32' name='microsoft.windows.common-controls' version='6.0.0.0' processorarchitecture='*' publickeytoken='6595b64144ccf1df' language='*'\"")

#endif

#endif

gargetver.h

#pragma once

//包括 sdkddkver.h 將定義可用的最高版本的 windows 平台。

//如果要為以前的 windows 平台生成應用程式,請包括 winsdkver.h,並將

//將 _win32_winnt 巨集設定為要支援的平台,然後再包括 sdkddkver.h。

#include

linux驅動學習筆記(linux驅動標頭檔案說明)

include 是在linux 2.6.29 include linux下面尋找原始檔。include 是在linux 2.6.29 arch arm include asm下面尋找原始檔。include 是在linux 2.6.29 arch arm mach s3c2410 include ma...

linux驅動學習筆記(linux驅動標頭檔案說明)

include 是在linux 2.6.29 include linux下面尋找原始檔。include 是在linux 2.6.29 arch arm include asm下面尋找原始檔。include 是在linux 2.6.29 arch arm mach s3c2410 include ma...

linux驅動學習筆記(linux驅動標頭檔案說明)

include 是在linux 2.6.29 include linux下面尋找原始檔。include 是在linux 2.6.29 arch arm include asm下面尋找原始檔。include 是在linux 2.6.29 arch arm mach s3c2410 include ma...