Solved

SimpleSerial Test Program from Microsoft

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

717 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