?
Solved

sharing comm ports

Posted on 1998-10-14
5
Medium Priority
?
136 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 200 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

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

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 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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

649 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