Solved

sharing comm ports

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

831 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