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

📄 smsdlg.h

📁 USB发送短消息 控制USB口发送短消息的源码
💻 H
字号:
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_SMSDLG_H__97DA0E18_324D_49CB_A9E6_191E72573301__INCLUDED_)
#define AFX_SMSDLG_H__97DA0E18_324D_49CB_A9E6_191E72573301__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/* ************************************************************************
	 *	 CSmsDlg.h :  Impliment file  of cmd Socket receive server  *
	 *	 Version   :  0.07                                          *
	 *	 Date      :  30th,Nov 2002                                 * 
	 *	 Author    :  Caihy                           	            *
	 *	 Email     :  cai_hai_ying2002@163.com                      *
 *************************************************************************/


/////////////////////////////////////////////////////////////////////////////
// CSmsDlg dialog

class CSmsDlg : public CDialog
{
// Construction
public:
	CSmsDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSmsDlg)
	enum { IDD = IDD_MODEMCONNET_DIALOG };
	CMSComm	m_Com;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSmsDlg)
	public:
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSmsDlg)
	afx_msg void OnOnCommCommctrl();
	virtual BOOL OnInitDialog();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:

//memeber function used in DLL
	void SendString(CString m_strSend);  //construct the send data type
	int SmsConvertPDU();  //convert Sms to PDU frame, return LEN of command "AT+CMGS=LEN" 
    CString m_strReceiveChar; //received characters
	CString PDUSms;  //final data in PDU frame protocol
	void SmsPDU();  //Sms after receive '>' char
	CString SCA;   //Sms Center Number  





};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SMSDLG_H__97DA0E18_324D_49CB_A9E6_191E72573301__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -