🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages Started by Steve Miller Tue, 25 Mar 2003 16:57
COM Ports
#17464
Author: Steve Miller
Date: Tue, 25 Mar 2003 16:57
5 lines
1046 bytes
How do you get a list of the COM ports (hard or soft) that are available on
each computer? Is there something like list EnumPrinters for serial ports?

Thanks,
Steve
Re: COM Ports
#17467
Author: Vladimir Afanasyev
Date: Tue, 25 Mar 2003 17:42
12 lines
1273 bytes
Hi,

"Steve Miller" <Steve@nospam.ca> wrote:
>How do you get a list of the COM ports (hard or soft) that are available on
>each computer? Is there something like list EnumPrinters for serial ports?
>

You can see how I do it in TPortControl:
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=16567

Vladimir.
Re: COM Ports
#17402
Author: Stephan
Date: Wed, 26 Mar 2003 18:37
23 lines
1702 bytes
Hi,
Enumerating the com ports is something a lot of people has done.
It requires searching through the registry, which gets a little
messy because the data is stored in different places in
different versions of windows, and in different ways  in the
same version of windows.

Mr. Afanasyev's stuff is good, and has helped me extensively.
You might also do a google search on "serial port enumerators"

You are also welcome to the code I bashed out after reviewing a lot of
different enumerators. let me know, and I'll email it to you.

Have Fun
Stephan

"Steve Miller" <Steve@nospam.ca> wrote in message
news:3e808ad9@newsgroups.borland.com...
How do you get a list of the COM ports (hard or soft) that are available on
each computer? Is there something like list EnumPrinters for serial ports?

Thanks,
Steve
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads