Click here to Skip to main content
15,902,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralI have a very stupid question... Pin
K. Shaffer21-Mar-03 7:39
K. Shaffer21-Mar-03 7:39 
GeneralRe: I have a very stupid question... Pin
Phil Boyd21-Mar-03 8:12
Phil Boyd21-Mar-03 8:12 
GeneralRe: I have a very stupid question... Pin
K. Shaffer21-Mar-03 8:21
K. Shaffer21-Mar-03 8:21 
GeneralRe: I have a very stupid question... Pin
John R. Shaw21-Mar-03 8:21
John R. Shaw21-Mar-03 8:21 
GeneralCOM-port for multiple applications Pin
Member 13901621-Mar-03 7:30
Member 13901621-Mar-03 7:30 
GeneralRe: COM-port for multiple applications Pin
John R. Shaw21-Mar-03 8:49
John R. Shaw21-Mar-03 8:49 
GeneralRe: COM-port for multiple applications Pin
Scorp1us21-Mar-03 10:32
Scorp1us21-Mar-03 10:32 
GeneralRe: COM-port for multiple applications Pin
CvdWalt21-Mar-03 11:30
CvdWalt21-Mar-03 11:30 
By nature the comm ports are asyncronous. "sharing" them is not feasible as it makes logical sence that only one program at a time would be reading / writing data via a comm port.

Simply open them when you have data you wish to read from or write to the port and close it as soon as you are done.

Some applications are arrogant enough to think that they have permenant control of hardware resources such as the comm ports. Palm "Hotsync" is one that comes to mind, opening the comm port and holding it open the entire time it runs. The solution to someone needing to share the comm port is to close these errant apps and only allow them control of the port when their device is read to communicate via the comm port.

I guess that last sentence really says it all. By nature you need to know when "your data" is coming down the async stream and read it. The rest of the time you care less what data is coming in. The same goes for outbound data.

On the other hand if you truly wish to "share" the data coming in via the comm port then write a single program that reads and records the data to a fifo file and use that file as input to the various applications that are all wanting to read the same data. You cannot share the port for output since that would mean a garbled data stream going out.
GeneralCListCtrl problem Pin
MemLeak21-Mar-03 7:16
MemLeak21-Mar-03 7:16 
GeneralRe: CListCtrl problem Pin
Amit Dey21-Mar-03 12:34
Amit Dey21-Mar-03 12:34 
GeneralRe: CListCtrl problem Pin
Anonymous22-Mar-03 13:13
Anonymous22-Mar-03 13:13 
GeneralRe: CListCtrl problem Pin
MemLeak24-Mar-03 7:48
MemLeak24-Mar-03 7:48 
Generalusing ActiveX CWebControl2 control. Pin
Maximilien21-Mar-03 7:15
Maximilien21-Mar-03 7:15 
GeneralRe: using ActiveX CWebControl2 control. Pin
Anonymous22-Mar-03 13:18
Anonymous22-Mar-03 13:18 
Generallog scale question Pin
pankajdaga21-Mar-03 7:07
pankajdaga21-Mar-03 7:07 
GeneralRe: log scale question Pin
jmkhael21-Mar-03 7:27
jmkhael21-Mar-03 7:27 
GeneralRe: log scale question Pin
Ravi Bhavnani21-Mar-03 7:30
professionalRavi Bhavnani21-Mar-03 7:30 
GeneralCArchive serialisation and operators < > Pin
Kuniva21-Mar-03 6:37
Kuniva21-Mar-03 6:37 
GeneralRe: CArchive serialisation and operators < > Pin
jmkhael21-Mar-03 7:02
jmkhael21-Mar-03 7:02 
GeneralRe: CArchive serialisation and operators < > Pin
Kuniva21-Mar-03 7:16
Kuniva21-Mar-03 7:16 
GeneralRe: CArchive serialisation and operators < > Pin
jmkhael21-Mar-03 7:20
jmkhael21-Mar-03 7:20 
GeneralRe: CArchive serialisation and operators < > Pin
Ravi Bhavnani21-Mar-03 7:33
professionalRavi Bhavnani21-Mar-03 7:33 
GeneralRe: CArchive serialisation and operators < > Pin
Kuniva21-Mar-03 9:06
Kuniva21-Mar-03 9:06 
GeneralRe: CArchive serialisation and operators < > Pin
Ravi Bhavnani21-Mar-03 10:21
professionalRavi Bhavnani21-Mar-03 10:21 
GeneralRe: CArchive serialisation and operators < > Pin
Ryan Binns21-Mar-03 17:41
Ryan Binns21-Mar-03 17:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.