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
Solved

SimpleSerial Test Program from Microsoft

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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 use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

809 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