📄 gsmprotocol.h
字号:
// GSMProtocol.h: interface for the CGSMProtocol class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GSMPROTOCOL_H__C2E046CA_29FB_483A_9EED_847864304731__INCLUDED_)
#define AFX_GSMPROTOCOL_H__C2E046CA_29FB_483A_9EED_847864304731__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define M_ISUNICODE 0 //是否为UNICODE代码
class CGSMProtocol
{
public:
TCHAR* StrCat(TCHAR *strDest, const TCHAR *strSour);
//把整性变为字符串
TCHAR* IntToString(int nValue,TCHAR *pString,int nRadix );
//字符串拷贝函数
TCHAR* StrCopy(TCHAR *strDest, const TCHAR *strSour);
//把7位编码变为8位编码
int SevenBitToEightBit(char *pSevenPool,char *pEightPool,int nLen);
//把PDU格式电话号码转化为字符串格式
int PduNumToPhoneNum(char *pPhoneNum,const char *pPduNum,int nPhoneLen);
//把电话号码转化为PDU格式
int PhoneNumToPduNum(char *pPhoneNum, char *pPdu,int nPhoneLen);
//把3位的数变为字符串
int ThirdDigitNumToCharacter(int nNumber, char *pCharacter);
//把两个字符变成一个字节,该字符的要求为,该字符为0~9或A~F
char TwoCharacterToByte(char *pCharacter);
//把一个字节的高四位和低四位变为两个字符,该字符为0~9或A~9
int ByteToTwoCharacter(char *pByte, char *TwoCharacter, int nDataLen);
//在一个字互换低字节与高直接
int InterchangeByteInWord(char *pSrc,char *pRes,int nDataLen);
CGSMProtocol ();
virtual ~CGSMProtocol();
};
#endif // !defined(AFX_GSMPROTOCOL_H__C2E046CA_29FB_483A_9EED_847864304731__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -