Click here to Skip to main content
15,920,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Extended MAPI in C, not C++ or C# Pin
Member 75496021-Feb-08 6:04
Member 75496021-Feb-08 6:04 
QuestionWhat is the SafeArrayGetElement Equalent method in Unix Pin
Jahnson K20-Feb-08 8:42
Jahnson K20-Feb-08 8:42 
AnswerRe: What is the SafeArrayGetElement Equalent method in Unix Pin
CPallini20-Feb-08 21:15
mveCPallini20-Feb-08 21:15 
GeneralLocking and Unlocking LogFile Pin
sharanu20-Feb-08 6:32
sharanu20-Feb-08 6:32 
GeneralRe: Locking and Unlocking LogFile Pin
Mark Salsbery20-Feb-08 6:52
Mark Salsbery20-Feb-08 6:52 
GeneralRe: Locking and Unlocking LogFile Pin
sharanu20-Feb-08 20:16
sharanu20-Feb-08 20:16 
GeneralRe: Locking and Unlocking LogFile Pin
Mark Salsbery21-Feb-08 7:36
Mark Salsbery21-Feb-08 7:36 
GeneralRe: Locking and Unlocking LogFile Pin
James R. Twine20-Feb-08 7:12
James R. Twine20-Feb-08 7:12 
   If you are trying to have a log file that can be read by other apps while you are still running, you can set the sharing permissions (allowing read access) correctly when opening/creating the file.

   Note: I believe that some common Windows apps, like Notepad and Wordpad/Write, will try to open file with write/exclusive access, which is why some apps can open a file you are using while Notepad cannot.

   I previously had to have a log file that was readily readable.  Even though it sounds like a lot of overhead, I ended up opening/writing/closing the file each time I had to log something.  Given that I only wrote log events between 1-4 times a second, the overhead (while measurable on the microsecond and clock tick level) was acceptable.

   You likely would not want to do that if the log file is remote...

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<hr></hr>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles



QuestionRe: Locking and Unlocking LogFile Pin
David Crow20-Feb-08 7:37
David Crow20-Feb-08 7:37 
QuestionHow to get a local printer status? Pin
Skywalker200820-Feb-08 5:16
Skywalker200820-Feb-08 5:16 
AnswerRe: How to get a local printer status? Pin
David Crow20-Feb-08 5:31
David Crow20-Feb-08 5:31 
GeneralRe: How to get a local printer status? Pin
Skywalker200821-Feb-08 6:09
Skywalker200821-Feb-08 6:09 
GeneralInstall which windows compoents before install Visual Studio 2003 Pin
akira3220-Feb-08 5:06
akira3220-Feb-08 5:06 
GeneralRe: Install which windows compoents before install Visual Studio 2003 Pin
Mark Salsbery20-Feb-08 5:41
Mark Salsbery20-Feb-08 5:41 
QuestionCannot get reference to Locked screen when the system is in RDP state Pin
Abdul_khaliq_20-Feb-08 4:42
Abdul_khaliq_20-Feb-08 4:42 
GeneralRe: Cannot get reference to Locked screen when the system is in RDP state Pin
James R. Twine20-Feb-08 7:21
James R. Twine20-Feb-08 7:21 
QuestionRe: Cannot get reference to Locked screen when the system is in RDP state Pin
Abdul_khaliq_20-Feb-08 19:49
Abdul_khaliq_20-Feb-08 19:49 
QuestionCompiles with VC6. Is this still available? Pin
Ylno20-Feb-08 4:14
Ylno20-Feb-08 4:14 
AnswerRe: Compiles with VC6. Is this still available? Pin
CPallini20-Feb-08 4:34
mveCPallini20-Feb-08 4:34 
GeneralRe: Compiles with VC6. Is this still available? Pin
Ylno20-Feb-08 5:14
Ylno20-Feb-08 5:14 
QuestionRe: Compiles with VC6. Is this still available? Pin
CPallini20-Feb-08 7:32
mveCPallini20-Feb-08 7:32 
GeneralRe: Compiles with VC6. Is this still available? Pin
Ylno20-Feb-08 8:54
Ylno20-Feb-08 8:54 
GeneralRe: Compiles with VC6. Is this still available? Pin
CPallini20-Feb-08 9:49
mveCPallini20-Feb-08 9:49 
GeneralRe: Compiles with VC6. Is this still available? Pin
Ylno20-Feb-08 10:51
Ylno20-Feb-08 10:51 
AnswerRe: Compiles with VC6. Is this still available? Pin
David Crow20-Feb-08 5:35
David Crow20-Feb-08 5:35 

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.