
#ifndef Z_TYPEDEF_H
#define Z_TYPEDEF_H

typedef unsigned long long QWLONG;
typedef unsigned long QLONG;
typedef unsigned short QWORD;
typedef unsigned int QDWORD;
typedef unsigned char QBYTE;



typedef struct {
	QBYTE C_identify[2] = { 0xAA,0xBB };
	QBYTE F_ActSourceUnitNumber = 0x00;
	QBYTE G_ActNetworkNumber = 0x00;
	QBYTE H_ActUnitNumber = 0xFF;
	QWORD I_ActIONumber = 0x03FF;
	QBYTE J_ActConnectUnitNumber = 0x00;
	QBYTE K_ActSourceStation = 0x00;
	QWORD L_CPUTimer = 0x1000;
}MC_Setting;



typedef struct {
	QBYTE Success = 0x00;
	QWORD errorCode = 0x00;
} Rcv;

typedef struct {
	QBYTE Success = 0x00;
	QWORD errorCode = 0x00;
	QWORD dat[65535];
} RcvWORD;

typedef struct {
	QBYTE Success = 0x00;
	QWORD errorCode = 0x00;
	QWORD dat[65535];
} RcvDWORD;


#define DLL_EXPORT  __declspec(dllexport)
DLL_EXPORT char* d2ch_(int n);

template <typename T>
T* combStr_(T* s, ...);
template DLL_EXPORT char* combStr_(char* s, ...);
template DLL_EXPORT wchar_t* combStr_(wchar_t* s, ...);



#endif
