?? 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);
//把整性變?yōu)樽址? TCHAR* IntToString(int nValue,TCHAR *pString,int nRadix );
//字符串拷貝函數(shù)
TCHAR* StrCopy(TCHAR *strDest, const TCHAR *strSour);
//把7位編碼變?yōu)?位編碼
int SevenBitToEightBit(char *pSevenPool,char *pEightPool,int nLen);
//把PDU格式電話號碼轉(zhuǎn)化為字符串格式
int PduNumToPhoneNum(char *pPhoneNum,const char *pPduNum,int nPhoneLen);
//把電話號碼轉(zhuǎn)化為PDU格式
int PhoneNumToPduNum(char *pPhoneNum, char *pPdu,int nPhoneLen);
//把3位的數(shù)變?yōu)樽址? int ThirdDigitNumToCharacter(int nNumber, char *pCharacter);
//把兩個字符變成一個字節(jié),該字符的要求為,該字符為0~9或A~F
char TwoCharacterToByte(char *pCharacter);
//把一個字節(jié)的高四位和低四位變?yōu)閮蓚€字符,該字符為0~9或A~9
int ByteToTwoCharacter(char *pByte, char *TwoCharacter, int nDataLen);
//在一個字互換低字節(jié)與高直接
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 + -