473,748 Members | 4,065 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

going from Win32_SerialPor t to port index

Hello,

I am able to get a list of ports using the System.Manageme nt classes.
Win32_SerialPor t has data members for port name, baud rate, etc, etc...
but no entry for port index number.

I need to map Win32_SerialPor t's to indicies to set
AxMSCommLib.AxM SComm.CommPort for read/write port access. How can I get
a port number given a Win32_SerialPor t? One way I can think of is to
parse the deviceid string for trailing numerals and use that as the
port number. But is "COM1" always guaranteed to be port 1 for
AxMSCommLib.AxM SComm.CommPort purposes?

Dec 8 '05 #1
0 1597

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

Similar topics

2
18401
by: Tom | last post by:
I've done this before, but apparently I didn't keep my notes.. I have DB2 Personal Edition on my Windows XP box to talk to our DB2 database on our AS/400. This HAS been working fine. Until this morning, that is. It was working Friday afternoon, and this morning, it was broken. It was giving me some error message about an invalid license file. So I uninstalled it (FP 4a) and have installed FP 5. When using the Configuration...
4
13324
by: Dave | last post by:
How do I send some data to serial port (for example COM1:) in C#? It will be nice if you will show me some example.
2
1533
by: Steve Norman | last post by:
Hi All, Is it possible to run an ASP.NET website on any other port except the default of 80? We have a dev site set up on port 81, but when we try to run any ASP pages we get the default 'Runtime Error' message. The same page runs fine on the same machine on port 80.
2
2201
by: Greg W. | last post by:
In our setup project, we have the standard web application folder, but we also have 4 web custom folders (virtual directories) that are created at the same level as the web application folder (i.e. not subdirectories). The setup works fine as long as the user leaves the default setting of port 80. If they choose something different, the install program loads the web application folder correctly at the non-standard port, but it installs...
13
4832
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have been told it is not possible to access the serial ports from asp.net. The application is used to control custom hardware. The hardware is connected to a PC through serial ports. Our customer wants to control the hardware from a remote...
2
3218
by: ValK | last post by:
Hi! Is that possible to scan multiple ports for incoming data with Sax.Communications.Community library control)? Let's say PC has 3 available ports(com1, com2, com3). Also there is three scan guns plugged to those ports. I want to have some kind of event that will fired up if data arrives to any of the ports. Can I open multiple connections with the single control? Or I need to have separate control for each port?
3
2735
by: pcm | last post by:
Hi, Has anyone ever worked on a Python-WinCE-based program that involved serial port management ? Regards, Philippe
7
1859
by: ucfcpegirl06 | last post by:
Hello, I have a dilemma. I am trying to flag duplicate messages received off of a com port. I have a software tool that is supposed to detect dup messages and flag and write the text "DUP" on the GUI of the software tool to let the user know that a duplicate message was sent or received. Here is the code:
30
3031
by: albert.neu | last post by:
Hello! What is a good compiler to use? (for MS Windows, for Linux) Any recommendations?? What's the point of having a C99 standard, if different compilers still produce differing results? The main reason for a standard, is (in my opinion) portabilty and
0
8987
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9366
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 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...
1
9316
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,...
0
8239
agi2029
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...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
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();...
0
4597
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...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.