使用VC6.0编写一个串口发送接收的程序
//
#include "stdafx.h"
#include "stdio.h"
#include "comapi.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/
// The one and only application object
CWinApp theApp;
using namespace std;
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
HANDLE m_hComDev = NULL;
do
{
// 设置串口号,对于STM32初始化Uart资源
char * m_com = "Com3";