473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to find friendly port names (vc++)

Don
I am writing a program and need to identify the friendly names of
ports. I have queried the registry key
HKEY_LOCAL_MACHIN\\EHARDWARE\\DEVICEMAP\\SERIALCOM M, but all that tells
me is which ones actually exist. Is there a way to get the names of
the devices, such as those shown in the Device Manager under "Ports"?

Thanks,

Dec 15 '06 #1
3 4714
On Dec 15, 2:07 pm, "Don" <don...@gmail.comwrote:
I am writing a program and need to identify the friendly names of
ports. I have queried the registry key
HKEY_LOCAL_MACHIN\\EHARDWARE\\DEVICEMAP\\SERIALCOM M, but all that tells
me is which ones actually exist. Is there a way to get the names of
the devices, such as those shown in the Device Manager under "Ports"?
Sorry, that's quite a bit off-topic here, but this might give you some
ideas of where to post your question:
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9, while
you're at it, read the whole page, it's quite useful.

--
Erik Wikström

Dec 15 '06 #2
Don

Erik Wikström wrote:
On Dec 15, 2:07 pm, "Don" <don...@gmail.comwrote:
I am writing a program and need to identify the friendly names of
ports. I have queried the registry key
HKEY_LOCAL_MACHIN\\EHARDWARE\\DEVICEMAP\\SERIALCOM M, but all that tells
me is which ones actually exist. Is there a way to get the names of
the devices, such as those shown in the Device Manager under "Ports"?

Sorry, that's quite a bit off-topic here, but this might give you some
ideas of where to post your question:
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9, while
you're at it, read the whole page, it's quite useful.

--
Erik Wikström

"For example, C++ code design, syntax, style, rules, bugs, etc."

I thought that my question was on topic, basically asking if there was
a c++ call to access a particular system parameter. If I was mistaken,
my apologies.

Thanks

Dec 15 '06 #3

Don wrote:
On Dec 15, 2:07 pm, "Don" <don...@gmail.comwrote:
I am writing a program and need to identify the friendly names of
ports. I have queried the registry key
HKEY_LOCAL_MACHIN\\EHARDWARE\\DEVICEMAP\\SERIALCOM M, but all that tells
me is which ones actually exist. Is there a way to get the names of
the devices, such as those shown in the Device Manager under "Ports"?

"For example, C++ code design, syntax, style, rules, bugs, etc."

I thought that my question was on topic, basically asking if there was
a c++ call to access a particular system parameter. If I was mistaken,
my apologies.
The key to understanding why that sort of question is off-topic is to
remember that C++ can be used to program a whole range of devices, much
wider than just desktop PCs. Any question that doesn't apply to all
platforms that C++ could be programmed for is probably off-topic. Your
question mentioned registrey keys and the Device Manager. These are
Windows concepts. Any solution that involves registrey keys and the
Device Manager will, by definition, be specific to Windows, which
automatically makes it off-topic.

Windows PCs, computers running Unix and Macs are all likely to have
various ports (serial, USB for example). Hypothetically, one could
imagine a C++ call available on all three platforms that allows you to
enumerate and use the available ports. Such a call would not be Windows
specific only but would be specific to the three platforms I mentioned,
so still off-topic.

HTH
Gavin Deane

Dec 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jonathan | last post by:
Hi all! For a match schedule I would like to find all possible combinations of teams playing home and away (without teams playing to themselves of course). I now the simple version works...
6
by: Jeff | last post by:
Hello, Someone can help me about serial port with C++ .NET (Windows forms application). Like setting port, opening it, transmiting, receiving, closing, etc. Thanks very much (for me and my...
2
by: Mark D. Richter | last post by:
These are two merge modules for the C runtime. Is there a "legit" place that Microsoft makes these available? MSDN? (Searching MSDN was not very fruitful however.) I am building in the VS 7.1...
2
by: Andrew | last post by:
VS.net Win 2k3 I'm getting the following error when attempting to debug. I'm not debugging remotely, just a local project. "Unable to start debugging. Cannot find port. Check the remote...
0
by: Anders Eriksson | last post by:
Hello! I have just started to port one of my applications (a dll) to VC++ 7.0 (.Net 2002) an I have some trouble with the Object Browsing/Find Symbol. I have configured the project so that it...
2
by: William GS | last post by:
Hello, my app sends and receives messages over a local area network using WinSock, so I need a Port, How can I get an unused port? It must work with VC6 and Win98/ME too. Thanks in advance,...
6
by: Prashant Bhuptani | last post by:
Hi Guys, I am trying to use a C++ dll in VB.NET code. I have imported the dll in the following manner: <code> Imports System.Runtime.InteropServices
3
by: vorange | last post by:
Hello, I have a problem I have been unable to solve for quite some time now. I'm using the Serialport class and opening the port and writing a byte to it. The byte is successfully received by...
2
by: goo.one1 | last post by:
Hi All, I'm looking for info on how to port VC++ 6 code/projects to VC++ 9 (2008). I noticed that there is a converter built-in for Visual *BASIC* to convert from VS6 to 9... I have found...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.