// ExternLightControl.cpp: implementation of the CExternLightControl class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "ExternLightControl.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CExternLightControl::CExternLightControl() { m_nLightValue = 0; } CExternLightControl::~CExternLightControl() { // CloseControl(); } int CExternLightControl::Hex2Integer(const CString strHex, const int iCount) { CString str = strHex.Left(iCount); CString hex(_T("0123456789abcdef")); int cnv = 1; int dec = 0; for(int i=0 ; i