Click here to Skip to main content
15,917,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: memcpy vs. memmove Pin
pba_21-Mar-03 10:58
pba_21-Mar-03 10:58 
GeneralRe: memcpy vs. memmove Pin
Chris Losinger21-Mar-03 11:59
professionalChris Losinger21-Mar-03 11:59 
GeneralRe: memcpy vs. memmove Pin
pba_21-Mar-03 12:15
pba_21-Mar-03 12:15 
GeneralPrinting with fopen, and f*() Pin
Anonymous21-Mar-03 10:16
Anonymous21-Mar-03 10:16 
GeneralRe: Printing with fopen, and f*() Pin
Ravi Bhavnani21-Mar-03 10:22
professionalRavi Bhavnani21-Mar-03 10:22 
GeneralRe: Printing with fopen, and f*() Pin
Scorp1us21-Mar-03 10:28
Scorp1us21-Mar-03 10:28 
GeneralRe: Printing with fopen, and f*() Pin
Scorp1us21-Mar-03 10:48
Scorp1us21-Mar-03 10:48 
GeneralRe: Printing with fopen, and f*() Pin
Nicolas Bonamy21-Mar-03 10:49
Nicolas Bonamy21-Mar-03 10:49 
GeneralRe: Printing with fopen, and f*() Pin
CvdWalt21-Mar-03 11:34
CvdWalt21-Mar-03 11:34 
GeneralRe: Printing with fopen, and f*() Pin
PJ Arends21-Mar-03 17:43
professionalPJ Arends21-Mar-03 17:43 
GeneralProblem with toolbars XP style Pin
John R. Shaw21-Mar-03 10:03
John R. Shaw21-Mar-03 10:03 
Generalmenu Pin
dudic21-Mar-03 8:13
dudic21-Mar-03 8:13 
GeneralRe: menu Pin
Maximilien21-Mar-03 8:30
Maximilien21-Mar-03 8:30 
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 

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.