Solved

sharing comm ports

Posted on 1998-10-14
5
130 Views
Last Modified: 2010-04-30
I need to intercept the comm1 port to read some messages which are send to another application, I am not aloud to join comm1 with another input, which is the easier form to do that, so I need to reed directly from comm1 which is already open,  I can't open a port already open so how can I skip this error?
0
Comment
Question by:ftg
[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
  • 3
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
david_levine earned 100 total points
ID: 1439923
2 programs can't have the same comm port open. The 2nd program will get an "in use" error.

If you are the developer of both applications, and you want input on the same comm port to go to 2 different applications, you would have to write a 3rd program which owns the comm port and somehow communicates the appropriate data to whichever program should receive the input.
0
 

Author Comment

by:ftg
ID: 1439924
Dave.
 I can't touch one of the applicatios, I know that oppen a port twice is a mistake, so the question is how can I cheat the compiler to run the program despite this error?
0
 

Author Comment

by:ftg
ID: 1439925
Dave.
 I can't touch one of the applicatios, I know that oppen a port twice is a mistake, so the question is how can I cheat the compiler to run the program despite this error?
0
 

Author Comment

by:ftg
ID: 1439926
Dave.
 I can't touch one of the applicatios, I know that open a port twice is a mistake, so the question is how can I cheat the compiler to run the program despite this error?
0
 
LVL 9

Expert Comment

by:david_levine
ID: 1439927
You can't have 2 programs accessing the same comm port. There's no way to cheat it. You could always put in another modem / line in the same computer. What's are the programs? Why do you want to do this?
0

Featured Post

Technology Partners: 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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

688 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