igpscomm.cpp

来自「非常好用的GPS串口通信」· C++ 代码 · 共 42 行

CPP
42
字号
///////////////////////////////////////////////////////////////////////////////
// IGpsComm.cpp : implementation of the IGpsComm class
//
// Copyright (c) 2004,上海合众思壮科技有限责任公司GIS部
//
// All rights reserved
//
// 文件名称:IGpsComm.cpp
//
// 摘要    :通讯接口类
//
// 作者    :Hansom
//
// 当前版本:1.1
//
// 完成日期:2004年04月12日
///////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "IGpsComm.h"

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

// Hansom Add 200405081300 debugfile
void DebugFile(const TCHAR * lpszFormat, ...)
{
	FILE *fp =_wfopen(_T("Debug_Comm.txt"), _T("at"));
	if (fp){
		va_list(arglist);
		va_start(arglist, lpszFormat);
		vfwprintf(fp, lpszFormat, arglist);
		va_end(arglist);

		fclose(fp);
	}
}

⌨️ 快捷键说明

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