Solved

How does the system name COM10 and higher?

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now