Tapan Gajera wrote:
> Hi all,
> 
> I am using WindowsXP SP1 and Visual Studio 2008 (Version 9.0.30729.1 SP)
> Can someone please illustrate "Reading and Writing to Serial Port in C++" 
> with a simple basic program.
> 
> Laptop's serial port is connected to 8051 micro controller via MAX232.
> 
> Thanks,
> Tapan Gajera

Newer kid on the block:

http://www.codeproject.com/KB/system/serial.aspx


PJ Naughter's old MFC-specific article:

http://www.codeproject.com/KB/system/cserialport.aspx


One issue you need to be aware of - accessing the serial port requires 
being logged in as Administrator.  And you may still have to set some 
privilege flags on your login token even with Admin privileges 
(SE_DEBUG_NAME is a privilege that bypasses most security mechanisms in 
Windows - you have to be Administrator to set it).

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to