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

📄 messagetest.h

📁 手机串口收发短消息的收发界面
💻 H
字号:
// MessageTest.h : main header file for the MESSAGETEST application
//

#if !defined(AFX_MESSAGETEST_H__4C5C7F20_CD3D_409B_BFBD_954803A4A114__INCLUDED_)
#define AFX_MESSAGETEST_H__4C5C7F20_CD3D_409B_BFBD_954803A4A114__INCLUDED_

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

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// CMessageTestApp:
// See MessageTest.cpp for the implementation of this class
//

#define DCS_7bit 0 /*7bit encode style*/
#define DCS_8bit 4 /*8bit encode style*/
#define DCS_UCS2 8 /*UCS2 encode style*/

void String_Byte(char *,unsigned char *,int);
void Byte_String(unsigned char *,char *,int);
void Address_Convert(unsigned char *,unsigned char *,int);
void bit7_Decode(unsigned char *,char *,int);
void bit8_Decode(unsigned char *,unsigned char *,int);
void UCS2_Decode(unsigned char *,char *,int);
int bit7_Encode(char *,unsigned char *,int);
int bit8_Encode(char *,unsigned char *,int);
int UCS2_Encode(char *,unsigned char *,int len);

UINT ComProcess(LPVOID pParam); //线程控制函数,读取串口数据

class CMessageTestApp : public CWinApp
{
public:
	CMessageTestApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMessageTestApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CMessageTestApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	afx_msg LRESULT OnCommNotify(WPARAM wParam, LPARAM lParam); //读取串口数据并显示在对话框
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_MESSAGETEST_H__4C5C7F20_CD3D_409B_BFBD_954803A4A114__INCLUDED_)

⌨️ 快捷键说明

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