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

📄 play.h

📁 VC++视频开发实例集锦(包括“远程视频监控”"语音识别系统"等13个经典例子)
💻 H
字号:
// play.h : main header file for the PLAY application
//

#if !defined(AFX_PLAY_H__8F79C401_2FF2_11D4_883D_0000210A0111__INCLUDED_)
#define AFX_PLAY_H__8F79C401_2FF2_11D4_883D_0000210A0111__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

#define MENU_VDEVICE0 16
#define B

#define MULTIDESTADDR "234.5.6.7"
#define DESTPORT 201


#include "resource.h"
#include "Winsock2.h"

// main symbols
extern BOOL fail;
extern HKEY PasswdKey;
extern char dw_Passwd[100];
extern BOOL	m_Modify;		  
extern SOCKET Lsock;          //监听套接字
extern SOCKADDR_IN  DestAddr; //发送地址
extern SOCKET MultiSock ;     //组播套接字

/////////////////////////////////////////////////////////////////////////////
// CPlayApp:
// See play.cpp for the implementation of this class
//

class CPlayApp : public CWinApp
{
public:

	void ErrMsg(HWND hwnd,const char* ErrMsg);
	
	DWORD InitSocket();
	void AddDevToMenu();
	CPlayApp();
    static UINT m_nImages[12];
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPlayApp)
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL

// Implementation
	//{{AFX_MSG(CPlayApp)
	afx_msg void OnAppAbout();
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	char achInBuf [32768];
    int nIP_TTL;
	BOOL  bFlag;
	int InitMultiSocket();

};


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

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

#endif // !defined(AFX_PLAY_H__8F79C401_2FF2_11D4_883D_0000210A0111__INCLUDED_)

⌨️ 快捷键说明

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