Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How does the system name COM10 and higher?

Posted on 1998-07-01
2
Medium Priority
?
260 Views
Last Modified: 2013-12-03
Is there a naming convention for com ports higher than 9?

CreateFile fails with a 'file not found' (winerror 2) when I try to open "COM10"; but
hyperterminal opens COM10 without complaint.
0
Comment
Question by:rosex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
alamo earned 200 total points
ID: 1409155
Opening "COM1" is just a shortcut CreatFile recognizes for convenience... the more technical way to open the comport is by specifying it as a device using

"\\\\.\\COM10"

(That's \\.\COM10 with the \ escaped so C doesn't get confused).

See Q115831 at http://support.microsoft.com/support/kb/articles/Q115/8/31.asp

Hope this helps!
0
 

Author Comment

by:rosex
ID: 1409156
Thanks, I found the same article with some direction from MSDN.
I was just about to come back and close the question!
I've updated my source, and I'm glad to report it works as
promised.
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

664 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question