1234567891011121314151617181920212223242526272829303132333435363738 |
- #include "stdafx.h"
- #include "Demo.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- CWinApp theApp;
- using namespace std;
- int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
- {
- int nRetCode = 0;
-
- if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
- {
-
- _tprintf(_T("错误: MFC 初始化失败\n"));
- nRetCode = 1;
- }
- else
- {
- parse_cmd_param_from_file("F:\\source\\scbc_repos\\Serail-Demo\\Demo\\command.data");
-
- CBaseSerial sb;
- sb.Open(23, _T("baud=115200 parity=N data=8 stop=1") );
- }
- return nRetCode;
- }
|