📄 ncap.h
字号:
// Ncap.h : main header file for the NCAP application
//
#if !defined(AFX_NCAP_H__A38989C5_3724_433A_853C_D7362955F565__INCLUDED_)
#define AFX_NCAP_H__A38989C5_3724_433A_853C_D7362955F565__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
//-------------------------------------------------------------------------------------------------
// 自定义消息、常量
//-------------------------------------------------------------------------------------------------
#define DATA_BUFFER_MAX 5000 //采集数据缓冲区
#define ID_CURVE_CONTROL 0x9999
/////////////////////////////////////////////////////////////////////////////
// CNcapApp:
// See Ncap.cpp for the implementation of this class
//
class CNcapApp : public CWinApp
{
public:
CNcapApp();
//自定义共有变量-------------------------------------------------------------------------------
//数据库参数
CString a_sDatabase_Ip; //数据库服务器地址
CString a_sDatabase_Name; //数据库名称
CString a_sDatabase_User; //数据库用户
CString a_sDatabase_Password; //数据库密码
int a_iDatabase_Type; //数据库类型
//系统运行参数
CString a_sDate; //工作日期
int a_iNum; //实验编号
int a_iDs_time; //采样时间间隔
int a_iNumber; //采样点数
int a_iChannel; //采样通道
bool a_bAuto_stop; //自动采样停止
bool a_bAuto_save; //自动数据保存
int a_iNumber_page; //一屏显示点数
int a_iNumber_move; //自动移动点数
int a_iNumber_append; //自动增加点数
int a_iAuto_move; //自动移动、增加选择
CString a_sIp; //网络IP
int a_iPort; //网络PORT
int a_iCom; //串口端口
int a_iBit; //串口波特率
float a_fVoltage; //初始电位
CString a_sUnit; //实验物理量
CString a_sName; //实验名称
int a_iMultiple; //放大倍数
CString a_sXunit; //x轴显示内容
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNcapApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CNcapApp)
// 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_NCAP_H__A38989C5_3724_433A_853C_D7362955F565__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -