📄 global.h
字号:
#ifndef GlobalH
#define GlobalH
#include <mmsystem.hpp>
#include "UserClass.h"
const int NOTIFY_POPWIN = 1;
const int NOTIFY_ICONFLASH = 2;
const int NOTIFY_PLAYSOUND = 4;
class CGlobal
{ public:
char RemoteHost[20]; //服务器IP地
int Port; //UDP端口号
int TimerInterval; //定时器时间
CLogin Login; //身份信息
int NotifyMode; //通知方式
char SoundFile[100]; //声音文件
bool AcceptConnect; //是否允许接收数据
//bool SendEnabled; //是否允许发送数据
bool EncryptTrans; //加密传输
int Version; //版本
char* PackBuff; //Udp包缓冲区
long TotalPackBuffSize; //总长度
long CurrentUsedSize; //已接收数据字节数
public:
__fastcall CGlobal();
__fastcall ~CGlobal();
void __fastcall SetRemoteHost(char*);
void __fastcall SetLogin(char*,char*);
void __fastcall SetNotifyMode(int);
bool __fastcall GetNotifyMode(int);
void __fastcall SetSoundFile(char*);
void __fastcall PutToBuff(CUdpPackage);
void __fastcall GetFromBuff(void*);
void __fastcall ResetPackBuff();
};
extern CGlobal Global;
bool __fastcall SoundCardExists();
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -