?
Solved

SimpleSerial Test Program from Microsoft

Posted on 2004-09-24
3
Medium Priority
?
225 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
[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
3 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

777 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