⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smspdu.h

📁 收发短信ocx控件
💻 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 + -