VS2005最佳串行端口类 [英] VS2005 best serialport class
本文介绍了VS2005最佳串行端口类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
CodeProject的尊敬的会员!
我是使用C ++开发的新手,几周前开始学习C ++.我正在开发必须在Win32中使用串行通讯的程序.
谁能告诉我在哪里可以找到一个非常简单的免费C ++类,该类可以处理串行端口并可以在Visual Studio 2005中正常工作?
我发现了几个串行库,但是我认为它们是为较旧的环境设计的,它们在VS2005中并不真正起作用.
谢谢您的帮助!
matu91
Dear Members of CodeProject!
I am a newbie to develop in C++, I started learning C++ few weeks ago. I am working on a programme in which I have to use serial communication in Win32.
Could anyone tell me where can I find a very simple, free C++ class that handles the serial port and works fine with Visual Studio 2005?
I found several serial libraries but I think they are designed for older environments, and they don''t really work in VS2005.
Thank you for your help!
matu91
推荐答案
http://msdn. microsoft.com/en-us/library/aa450503.aspx [ ^ ]
设置串行端口非常简单,无需使用任何其他人的代码.
上面链接中的示例将为您提供帮助.
http://msdn.microsoft.com/en-us/library/aa450503.aspx[^]
Setting up the Serial Port is rather straight forward without need to use anyone elses code.
The example in the above link should help you out.
请勿使用其他人的课程.使用Windows API
,查看有关[ ^ ].
Don''t use other people''s classes. UseWindows API
, have a look atMSDN
documentation about [^].
您可以使用MSComm控制器.
you can use MSComm controller.
这篇关于VS2005最佳串行端口类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文