写了一个很简单API串口编程的源代码,调试通过,希望给需要的人有所帮助
// comconsole.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <string>
#include <windows.h>
void set_up_serial_port(HANDLE h, long baud);
int main(int argc, char* argv[])
{


