Solved

How does the system name COM10 and higher?

Posted on 1998-07-01
2
255 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 50 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

763 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