// Pcomm.cpp : 定义控制台应用程序的入口点。
//
include “stdafx.h”
include
include “PComm.h”
include
include
include
pragma comment(lib, “PCOMM.lib”)
int port = 1;
int _tmain(int argc, _TCHAR* argv[])
{
int status = sio_open(port);
if (status == SIO_OK)
{
sio_ioctl(port, B115200, P_NONE | BIT_8 | STOP_1);
}
else
{
return 0;
}
return 0;
}