Click here to Skip to main content
15,890,995 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralQuestion about...ehh, i don't even know Pin
toxcct30-Jun-05 6:51
toxcct30-Jun-05 6:51 
GeneralRe: Question about...ehh, i don't even know Pin
Jose Lamas Rios30-Jun-05 7:04
Jose Lamas Rios30-Jun-05 7:04 
GeneralRe: Question about...ehh, i don't even know Pin
toxcct30-Jun-05 7:19
toxcct30-Jun-05 7:19 
GeneralRe: Question about...ehh, i don't even know Pin
Jose Lamas Rios30-Jun-05 8:37
Jose Lamas Rios30-Jun-05 8:37 
GeneralRe: Question about...ehh, i don't even know Pin
toxcct30-Jun-05 20:27
toxcct30-Jun-05 20:27 
GeneralDifference on CSingleLock ::Lock and CSyncObject::Lock Pin
yccheok30-Jun-05 6:29
yccheok30-Jun-05 6:29 
GeneralCritical Section vs. Lock Pin
Peter Weyzen30-Jun-05 9:26
Peter Weyzen30-Jun-05 9:26 
GeneralRe: Difference on CSingleLock ::Lock and CSyncObject::Lock Pin
PJ Arends30-Jun-05 10:05
professionalPJ Arends30-Jun-05 10:05 
CCriticalSections are usually (not always) class members or global objects that never go out of scope. So if you use CCriticalSection::Lock() you have to remember to call CCriticalSection::Unlock(). This can be tricky to implement if you code can take many divergent paths inside the lock. Using CSingleLock makes this much easier as you would normally declare the CSingleLock inside a function or loop or some other small bit of code where it goes out of scope and is destroyed when no longer needed. CSingleLock automatically unlocks the sync object from within its destructor, you do not have to explicitly call CSingleLock::Unlock().



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04

"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05

Within you lies the power for good - Use it!
GeneralCList Box controls MFC Pin
goodoljosh30-Jun-05 5:44
goodoljosh30-Jun-05 5:44 
GeneralRe: CList Box controls MFC Pin
Jose Lamas Rios30-Jun-05 5:52
Jose Lamas Rios30-Jun-05 5:52 
GeneralRe: CList Box controls MFC Pin
David Crow30-Jun-05 5:57
David Crow30-Jun-05 5:57 
GeneralRe: CList Box controls MFC Pin
goodoljosh30-Jun-05 6:12
goodoljosh30-Jun-05 6:12 
GeneralRe: CList Box controls MFC Pin
David Crow30-Jun-05 6:19
David Crow30-Jun-05 6:19 
GeneralRe: CList Box controls MFC Pin
goodoljosh30-Jun-05 6:30
goodoljosh30-Jun-05 6:30 
GeneralRe: CList Box controls MFC Pin
goodoljosh30-Jun-05 6:35
goodoljosh30-Jun-05 6:35 
GeneralGmail Drive namespace extension Pin
Dreaser$30-Jun-05 4:58
Dreaser$30-Jun-05 4:58 
GeneralRe: Gmail Drive namespace extension Pin
Dreaser$1-Jul-05 0:14
Dreaser$1-Jul-05 0:14 
QuestionHow to position a toolbar??? Pin
IlanTal30-Jun-05 4:47
IlanTal30-Jun-05 4:47 
AnswerRe: How to position a toolbar??? Pin
Cedric Moonen30-Jun-05 4:54
Cedric Moonen30-Jun-05 4:54 
GeneralRe: How to position a toolbar??? Pin
IlanTal1-Jul-05 8:37
IlanTal1-Jul-05 8:37 
GeneralAccount type Pin
__makaveli__30-Jun-05 3:10
__makaveli__30-Jun-05 3:10 
GeneralRe: Account type Pin
Blake Miller30-Jun-05 4:45
Blake Miller30-Jun-05 4:45 
GeneralRe: Account type Pin
David Crow30-Jun-05 5:51
David Crow30-Jun-05 5:51 
GeneralRe: Account type Pin
__makaveli__30-Jun-05 5:52
__makaveli__30-Jun-05 5:52 
GeneralVersion Control vs. resource files ( resource.h ) Pin
Maximilien30-Jun-05 2:48
Maximilien30-Jun-05 2: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.