Solved

sharing comm ports

Posted on 1998-10-14
5
128 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

Independent Software Vendors: 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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

740 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