Solved

SimpleSerial Test Program from Microsoft

Posted on 2004-09-24
3
221 Views
Last Modified: 2010-04-01
I am using the SimpleSerial Test Program provided by Microsoft and whenever I try to run the executable it creates...it comes up...but when I try to attach to my COM1 port (which is the only one I have on this computer), it says "Access is Denied".

This is a Win2K machine and I'm using Visual C++ 6 to build it.  Is there a problem with the hardware abstraction layer denying me access to the port or is the code invalid on Win2K?

I'm trying to use MFC to access the COM ports for a small serial program that I will eventually turn in to a service.  I want to be able to make my program...but I'm wondering if I need to use something else to code in.  Additionally, I will eventually be going to WinXP.

Any ideas?
0
Comment
Question by:vivekpara
  • 2
3 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 12148317
Hi vivekpara,

I think you have another process hooking your serial port, maybe a remote access service, or a fax-modem application.
You can make a test. Launch Hyperterminal and try to open "Direct to COM1:" port, if fails, I am right.

Good luck,
Jaime.
0
 
LVL 2

Author Comment

by:vivekpara
ID: 12148439
You are so frigging right!  I shoulda thought a that myself...My ActiveSync was set to use the COM port.  You've earned the points.

While I reserve for myself hours of kicking myself in stupidity...

=)
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 12148490
Don't worry, happened to me dozens of times.
BR,
Jaime.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

815 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

8 Experts available now in Live!

Get 1:1 Help Now