I am writing a program and need to identify the friendly names of
ports. I have queried the registry key
HKEY_LOCAL_MACH IN\\EHARDWARE\\ DEVICEMAP\\SERI ALCOMM, 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, 3 4746
On Dec 15, 2:07 pm, "Don" <don...@gmail.c omwrote:
I am writing a program and need to identify the friendly names of
ports. I have queried the registry key
HKEY_LOCAL_MACH IN\\EHARDWARE\\ DEVICEMAP\\SERI ALCOMM, 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
Erik Wikström wrote:
On Dec 15, 2:07 pm, "Don" <don...@gmail.c omwrote:
I am writing a program and need to identify the friendly names of
ports. I have queried the registry key
HKEY_LOCAL_MACH IN\\EHARDWARE\\ DEVICEMAP\\SERI ALCOMM, 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
Don wrote:
On Dec 15, 2:07 pm, "Don" <don...@gmail.c omwrote:
I am writing a program and need to identify the friendly names of
ports. I have queried the registry key
HKEY_LOCAL_MACH IN\\EHARDWARE\\ DEVICEMAP\\SERI ALCOMM, 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 something like this:
For a (very) simple table containing three rows like this:
row 1: A
|
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 students)
|
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 environment (C#) with a 3rd party merge
module that depends on VC_USR.msm and VC_STL.msm.
Many thanks.
Mark Richter
|
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 machine
name."
Any insight is appreciated.
|
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 creates Browse Information (/FR)
and it does create the file <project name>.bsc
I have configured VS 7.0 to use VC++ 6.0 key mappings
| |
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,
William GS
|
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
|
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 the other
device. The other device then sends back a response.
But what I get back is the same character I sent! e.g. if i send 2, i
get back 2.
What is going on here? Why are things being echoed back. My code is
|
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 the following brief note:
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |