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

C / C++ / MFC

 
GeneralRe: binary file stream Pin
Tarundeep Singh Kalra4-Mar-05 8:06
Tarundeep Singh Kalra4-Mar-05 8:06 
GeneralRe: binary file stream Pin
SimpleProgramer4-Mar-05 8:14
SimpleProgramer4-Mar-05 8:14 
GeneralRe: binary file stream Pin
David Crow4-Mar-05 9:21
David Crow4-Mar-05 9:21 
GeneralRe: binary file stream Pin
SimpleProgramer4-Mar-05 20:59
SimpleProgramer4-Mar-05 20:59 
GeneralRe: binary file stream Pin
David Crow7-Mar-05 2:22
David Crow7-Mar-05 2:22 
QuestionLinking property sheets and multiple views ?? how do I ?? Pin
ur_unholyness4-Mar-05 7:20
ur_unholyness4-Mar-05 7:20 
GeneralDynamically Opening Files for Output Pin
ChemmieBro4-Mar-05 7:18
ChemmieBro4-Mar-05 7:18 
GeneralRe: Dynamically Opening Files for Output Pin
Blake Miller4-Mar-05 7:43
Blake Miller4-Mar-05 7:43 
If there is a separate instance of your COM object for each client, then make the handle to the log file a private member of each COM object instance. You will then log to the correct file for each client.

If you also open the log file for exclusive write access, then no other client will be able to open the same log file for writing.

Your public file's sharing should be modified to allow multiple clients to open filehandles and write to it. You should protect the writing process with a mutex or some similar synchronization object so that they don't all actually ever write to it at the same time.

GeneralRe: Dynamically Opening Files for Output Pin
Tarundeep Singh Kalra4-Mar-05 7:53
Tarundeep Singh Kalra4-Mar-05 7:53 
GeneralRe: Dynamically Opening Files for Output Pin
ChemmieBro4-Mar-05 8:35
ChemmieBro4-Mar-05 8:35 
GeneralEnumerating devices on LAN Pin
lastdays4-Mar-05 7:05
lastdays4-Mar-05 7:05 
GeneralRe: Enumerating devices on LAN Pin
Tarundeep Singh Kalra4-Mar-05 7:48
Tarundeep Singh Kalra4-Mar-05 7:48 
GeneralRe: Enumerating devices on LAN Pin
lastdays4-Mar-05 9:04
lastdays4-Mar-05 9:04 
GeneralRe: Enumerating devices on LAN Pin
lastdays4-Mar-05 9:52
lastdays4-Mar-05 9:52 
Generalautomate IE's image save as function Pin
tkarven4-Mar-05 6:59
tkarven4-Mar-05 6:59 
GeneralRe: automate IE's image save as function Pin
Tarundeep Singh Kalra4-Mar-05 7:54
Tarundeep Singh Kalra4-Mar-05 7:54 
QuestionIn VC++ how can i use a shared port ?? Pin
ali mehdi4-Mar-05 5:25
ali mehdi4-Mar-05 5:25 
GeneralChecking drop down toolbar menu items Pin
Kapgan4-Mar-05 5:24
Kapgan4-Mar-05 5:24 
GeneralRe: Checking drop down toolbar menu items Pin
David Crow4-Mar-05 7:15
David Crow4-Mar-05 7:15 
GeneralRe: Checking drop down toolbar menu items Pin
Kapgan4-Mar-05 8:21
Kapgan4-Mar-05 8:21 
GeneralRe: Checking drop down toolbar menu items Pin
David Crow4-Mar-05 8:28
David Crow4-Mar-05 8:28 
GeneralRe: Checking drop down toolbar menu items Pin
Kapgan4-Mar-05 9:56
Kapgan4-Mar-05 9:56 
GeneralRe: Checking drop down toolbar menu items Pin
David Crow4-Mar-05 10:03
David Crow4-Mar-05 10:03 
Questionhow to use of hotkey Pin
ali mehdi4-Mar-05 5:22
ali mehdi4-Mar-05 5:22 
GeneralC++ and Bios Pin
Anonymous4-Mar-05 4:49
Anonymous4-Mar-05 4:49 

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.