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

📄 led.cpp

📁 停车场收费系统系统平台 GPS/GSM车辆监控及调度指挥系统 基于移动通信网络的车辆管理系统+ 远程无线通信的视频、图像监控管理系统
💻 CPP
字号:
// LED.cpp: implementation of the CLED class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "ParkSys.h"
#include "LED.h"
#include "vicpublic.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CLED::CLED(CSerialPort* commLED)
{
	if(commLED == NULL)
	{
		THROW(new CException);		
	}
	else
	{
		m_comm = commLED;
	}
}

CLED::~CLED()
{
	m_comm = NULL;
}

void CLED::TakeEffect(const CString& strScript)
{
	if(m_comm == NULL)
	{
		THROW(new CException);
		return;
	}	
	char buf[500];
	wsprintf(buf, "%s", strScript);
	m_comm->WriteToPort(buf);
}

⌨️ 快捷键说明

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