www.pudn.com > ViewerCarry.rar > BaseDef.h
#ifndef _BASEDEF
#define _BASEDEF
#define MAX_FILENUM 5 //可以选择的最大文件数量
#define PATH_SEPARATOR 0X5c // \ 字符
#define PATH_REMOVE_BMP "remove.jpg"
#define MAX_ARRAY_NUM 1000
#define MAX_TIME_STEP 100
//自定义说明
#define UPDATE_EMPTYFILE_SHOW "没有可供上传的文件"
#define MAX_IMAGE_SIZE 13224744
#define MAX_READIMAGE_COUNT 65536
#define MAX_WRITEIMAGE_COUNT 8192
#define SERVER_PORT 16858
#define SERVER_IP "127.0.0.1"
#define MAX_TIME_OUT 1
#define MAX_SEND_COUNT 2048
#define IMAGE_STORE_PATH "d:\\IMAGESTORE"
#define MSG_PACKET_LEN 2048
//用户信息
const short USRID = 64 ;
const short USR = 64 ;
const short PWD = 64 ;
const short IMAGE_NAME = 256;
const short IMAGE_LEN = 64;
const short NOWTIME = 64;
const short IMAGE_REMARK = 1472;
//用户消息自定义
#define WM_FILE_UPDATE WM_USER + 128
#define WM_PROG_INIT WM_USER + 129
typedef struct tag_USERMSG
{
char szUserID[USRID];
char szUserName[USR];
char szPassWord[PWD];
char szImageLen[IMAGE_LEN];
char szImageName[IMAGE_NAME];
char szImageRemark[IMAGE_REMARK];
}USERMSG, * P_USERMSG;
extern USERMSG g_UserMsg;
extern HWND g_hDlgWnd;
extern int g_nTotalImage;
#endif