?? smspdu.h
字號:
// PDU.h: interface for the CSMSPDU class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PDU_H__B73ABA51_8867_48CD_A2F6_BCF34CCC98C0__INCLUDED_)
#define AFX_PDU_H__B73ABA51_8867_48CD_A2F6_BCF34CCC98C0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define MSG_INFO_1 ((DWORD)0x40000000L)
#define MSG_WARNING_1 ((DWORD)0x80000001L)
#define MSG_ERROR_1 ((DWORD)0xC0000002L)
#define MSG_SUCCESS_1 ((DWORD)0x00000003L)
#define conADType _T("91") //地址類型
#define conADText _T("+") //地址類型表示符
#define conUCodeSeg _T("000800") //Unicode編碼類型段
#define conACodeSeg _T("000000") //默認編碼類型段
#define conSendSeg _T("1100") //消息發送段
#define conPostfix _T("F") //地址后綴,將地址長度補齊為偶數
class CSMSPDU
{
public:
CSMSPDU();
virtual ~CSMSPDU();
public:
size_t GetPDUContent(CString & strStream, LPCTSTR szCallCenter, LPCTSTR szTarget, LPCTSTR szContent);
protected:
CString ConvertSemiOctet(LPCTSTR lpStr);
CString ConvertUnicode2String(CString strDataSrc);
int HexString2Int(LPCTSTR abyte);
int OctString2Int(LPCTSTR abyte);
CString ConvertOctet(LPCTSTR lpStr);
CString GetEncAddr(LPCTSTR bStr, int nType);
CString GetUCSSegment(LPCTSTR lpszContent);
unsigned int GetStreamLength(CString objStream);
};
#endif // !defined(AFX_PDU_H__B73ABA51_8867_48CD_A2F6_BCF34CCC98C0__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -