修改RS232通信

This commit is contained in:
TAO Cheng
2013-07-01 16:23:02 +08:00
parent 61a49df5ee
commit 46fb8ed7b2
11 changed files with 123 additions and 255 deletions
@@ -5,4 +5,20 @@
#include "stdafx.h"
CString GetAppPath(void)
{
CWinApp* pApp=AfxGetApp();
if(pApp==0)
return _T("");
TCHAR buf[256];
GetModuleFileName(0,buf,256);
CString sAppPath(buf);
int nPos=sAppPath.ReverseFind('\\');
if(nPos)
sAppPath=sAppPath.Left(nPos);
return sAppPath;
}