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

📄 windemo.h

📁 Nucleus Plus源代码
💻 H
字号:
// WinDemo.h : main header file for the WINDEMO application
//

#if !defined(AFX_WINDEMO_H__F34CC335_866B_11D3_80DF_0050DA0B9B6F__INCLUDED_)
#define AFX_WINDEMO_H__F34CC335_866B_11D3_80DF_0050DA0B9B6F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// CWinDemoApp:
// See WinDemo.cpp for the implementation of this class
//

extern SOCKADDR_IN stRmtAddr;
extern int ChoiceIP;
extern SOCKET udps, tcps;
extern int ErrorCode;

class CWinDemoApp : public CWinApp
{
public:
	CMultiDocTemplate* pDocTemplate1, *pDocTemplate2, *pDocTemplate3, 
		*pDocTemplate4, *pDocTemplate5, *pDocTemplate6;

	BOOL	m_bTcpcliStarted, m_bTcpsrvStarted, m_bUdpcliStarted,
		m_bUdpsrvStarted, m_bTftpStarted;
	
//	SOCKET udpscomm; /* socket handle            */

	CWinDemoApp();

	BOOL SendBytes(char *OutBuf, int nBytes);
	void UdpsrvThread(void);
	void TcpsrvThread(void);

	static CWnd *m_pWndError, *m_pWndStatus;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWinDemoApp)
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL

// Implementation
	//{{AFX_MSG(CWinDemoApp)
	afx_msg void OnAppAbout();
	afx_msg void OnDemoTcpcliStart();
	afx_msg void OnUpdateDemoTcpcliStart(CCmdUI* pCmdUI);
	afx_msg void OnDemoTcpserStart();
	afx_msg void OnUpdateDemoTcpserStart(CCmdUI* pCmdUI);
	afx_msg void OnDemoUdpcliStart();
	afx_msg void OnUpdateDemoUdpcliStart(CCmdUI* pCmdUI);
	afx_msg void OnDemoUdpserStart();
	afx_msg void OnUpdateDemoUdpserStart(CCmdUI* pCmdUI);
	afx_msg void OnFileDetecthost();
	afx_msg void OnUpdateFileDetecthost(CCmdUI* pCmdUI);
	afx_msg void OnDemoTftpclient();
	afx_msg void OnUpdateDemoTftpclient(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

extern CWinDemoApp theApp;

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_WINDEMO_H__F34CC335_866B_11D3_80DF_0050DA0B9B6F__INCLUDED_)

⌨️ 快捷键说明

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