Solved

SimpleSerial Test Program from Microsoft

Posted on 2004-09-24
3
218 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

747 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

13 Experts available now in Live!

Get 1:1 Help Now