PLAY.H
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:2k
源码类别:
VC书籍
开发平台:
Visual C++
- // 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_)