dk20dieselizedynamotor.h

来自「485通讯接口模块的编程应用」· C头文件 代码 · 共 74 行

H
74
字号
// DK20DieselizeDynamotor.h : main header file for the DK20DIESELIZEDYNAMOTOR application
//

#if !defined(AFX_DK20DIESELIZEDYNAMOTOR_H__D54DE7D2_325C_4ABA_A4CB_600507BC796E__INCLUDED_)
#define AFX_DK20DIESELIZEDYNAMOTOR_H__D54DE7D2_325C_4ABA_A4CB_600507BC796E__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

/////////////////////////////////////////////////////////////////////////////
// CDK20DieselizeDynamotorApp:
// See DK20DieselizeDynamotor.cpp for the implementation of this class
//

typedef struct MOUDLE_VALUE {
	CString strValuename; //模块对应的值的名称 
	float iCurrentvalue ; //当前读取的值
	float iWarningvalueuper ; //报警值 
	float iWarningvaluelower ; //报警下限
	float   fTimedelay  ; //报警延时
	int iStatus       ; //根据当前值与报警值比较,最终确定状态 0, 1,2 
	int iTotalCount  ; //目前具有的总个数

} n3;

typedef struct VIRTUALMOUDLE {
	CString strCommand ;                  //模块命令
//	vector <MOUDLE_VALUE> vcorValue;      //模块值
	MOUDLE_VALUE vcorValue[16];      //模块值

} n4 ;
typedef struct{
	HWND hWnd;  // Windows Handle for display data
	unsigned char *Para_1;  // parameter-1 pointer
	unsigned char *Para_2;  // parameter-2 pointer
	BOOL *lpKillThread;  // Thread flag for start/stop
} THREAD_INFO;

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

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

// Implementation

	//{{AFX_MSG(CDK20DieselizeDynamotorApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


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

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

#endif // !defined(AFX_DK20DIESELIZEDYNAMOTOR_H__D54DE7D2_325C_4ABA_A4CB_600507BC796E__INCLUDED_)

⌨️ 快捷键说明

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