⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demodlg.h

📁 使用VC++开发的很棒的上网拨号工具的程序的源码,可以选择PING,UDP,TCP/IP等等方式,功能比较全面.Using Visual C + + development of the great
💻 H
字号:
// demoDlg.h : header file
//
//{{AFX_INCLUDES()

//}}AFX_INCLUDES

#if !defined(AFX_DEMODLG_H__7978E517_50AB_11D5_9346_0010B54D55DA__INCLUDED_)
#define AFX_DEMODLG_H__7978E517_50AB_11D5_9346_0010B54D55DA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "public.h"
#include "CRC.h"	// Added by ClassView
#include "Packet.h"

#define CN_SEND WM_USER+100
#define MAXLENGTH	64
//#define READ_OS( x ) (x -> osRead)

/////////////////////////////////////////////////////////////////////////////
// CDemoDlg dialog

class CDemoDlg : public CDialog
{
// Construction
public:
	void Display(BOOL recv,BYTE* dispstr);
	void writelog(CString temp);
	void bytecat(BYTE* strCommRecvMsg);
	void testcat(BYTE* strCommRecvMsg);
//	void getpacket();

		
	//CCRC m_crc;
	CDemoDlg(CWnd* pParent = NULL);	// standard constructor
	
	HANDLE hCommDev;
	CString tempstr;


	
	BYTE RecvMsgtemp[256];
	BYTE ATState;
	BOOL ini,recv;
	BOOL framehead,frameend;		//frame head end flag
	BYTE szPacketRx[256];	//receive packet buffer
	BYTE szPacketTx[256];	//send packet buffer
	BYTE temp[256];
	CPacket m_packet;
	
	char szDisplay[3];
	int iLen;
	
	CString	*m_ipOut;
	CString *m_ipad;

// Dialog Data
	//{{AFX_DATA(CDemoDlg)
	enum { IDD = IDD_DEMO_DIALOG };
	CListBox m_event;
	CString	m_baud;
	CString	m_called;
	CString	m_com;
	CString	m_password;
	CString m_userid;
	CString m_ipOut0;
	CString m_ipOut1;
	CString m_ipOut2;
	CString m_ipOut3;
	CString m_ipad0;
	CString m_ipad1;
	CString m_ipad2;
	CString m_ipad3;
	CString m_srcport;
	CString m_desport;

//	CString	m_ipOut[4];
//	CString m_ipad[4];

	CString m_senddata;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDemoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CDemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnInicom();
	afx_msg bool OnTimer(UINT nIDEvent);
	afx_msg void OnDial();
	afx_msg void OnSend(LPARAM lParam);
	afx_msg void OnPing();
	afx_msg void OnSendA();
	afx_msg void OnCloseA();
	afx_msg void OnKeyPressSendBox(short FAR* KeyAscii);
	afx_msg void OnUdp();
	afx_msg void OnTcp();
	afx_msg void OnState();
	afx_msg void OnSelchangeEvent();
	afx_msg void OnChangeSendBox();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL MyReadFile_Flag;
	BOOL MyReadFile_Flag1;
};



//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.


#endif // !defined(AFX_DEMODLG_H__7978E517_50AB_11D5_9346_0010B54D55DA__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -