Click here to Skip to main content
15,884,099 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can't Undock my CDialogBar Pin
Jose Lamas Rios30-Jun-05 18:40
Jose Lamas Rios30-Jun-05 18:40 
GeneralWriting keyboard directly Pin
willken30-Jun-05 7:10
willken30-Jun-05 7:10 
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 
In the MSDN example, I can see in order to ensure only one thread access a resouce, we use:

CSingleLock singleLock(&m_CritSection);
singleLock.Lock();
// resource locked
//.usage of shared resource...

singleLock.Unlock();


However, since CCriticalSection (inheritance from CSyncObject) already have a Lock method memeber, cannt we just do?

m_CritSection.Lock();
// resource locked
//.usage of shared resource...

m_CritSection.Unlock();

Thanks!

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 
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 

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.