Connecting Tech Pros Worldwide Forums | Help | Site Map

C++ getting data from serial/parallel port, how to?

Sonoman
Guest
 
Posts: n/a
#1: Jul 22 '05
Hi all:
I tried searching on the net, but I do not even know what I am looking
for. What I want to do is to write aprogram using C++ that will gather
data from an external microprocessor, format it and write it to a file
for later use. I can handle pretty much everything exept the part where
I "listen" to either the serial or parallel (may be USB?) ports for data
from the external source. Any help will be greatly appreciated.

Sonoman

John Harrison
Guest
 
Posts: n/a
#2: Jul 22 '05

re: C++ getting data from serial/parallel port, how to?


On Fri, 30 Jul 2004 01:14:11 -0400, Sonoman <billgates@microsoft.com>
wrote:
[color=blue]
> Hi all:
> I tried searching on the net, but I do not even know what I am looking
> for. What I want to do is to write aprogram using C++ that will gather
> data from an external microprocessor, format it and write it to a file
> for later use. I can handle pretty much everything exept the part where
> I "listen" to either the serial or parallel (may be USB?) ports for data
> from the external source. Any help will be greatly appreciated.
>
> Sonoman[/color]

You question is off topic for this group, please read this groups welcome
message for a description of what this group is about and some suggestions
for alternative groups where your question might be on topic.

http://www.slack.net/~shiva/welcome.txt

john
JKop
Guest
 
Posts: n/a
#3: Jul 22 '05

re: C++ getting data from serial/parallel port, how to?


Sonoman posted:
[color=blue]
> Hi all:
> I tried searching on the net, but I do not even know what[/color]
I am looking[color=blue]
> for. What I want to do is to write aprogram using C++[/color]
that will gather[color=blue]
> data from an external microprocessor, format it and write[/color]
it to a file[color=blue]
> for later use. I can handle pretty much everything exept[/color]
the part where[color=blue]
> I "listen" to either the serial or parallel (may be USB?)[/color]
ports for data[color=blue]
> from the external source. Any help will be greatly[/color]
appreciated.[color=blue]
>
> Sonoman[/color]

OFF-TOPIC

If your platform is MSWindows, then:

CreateFileEx(...

DeviceIoControl(...


See msdn.microsoft.com

-JKop
Closed Thread


Similar C / C++ bytes