Click here to Skip to main content
16,014,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DWORD registry values... Pin
halblonious24-Oct-03 16:03
halblonious24-Oct-03 16:03 
General[Off Topic] It won't update the last modified date in VS.Net 2003. Pin
Link260023-Oct-03 14:06
Link260023-Oct-03 14:06 
GeneralRe: [Off Topic] It won't update the last modified date in VS.Net 2003. Pin
Link260025-Oct-03 17:27
Link260025-Oct-03 17:27 
GeneralRight click on the menu to on/off toolbar Pin
vancouver77723-Oct-03 13:47
vancouver77723-Oct-03 13:47 
Questionhow to crop or copy a part of image in HBITMAP Pin
Slim Gradey23-Oct-03 13:00
Slim Gradey23-Oct-03 13:00 
AnswerRe: how to crop or copy a part of image in HBITMAP Pin
Iain Clarke, Warrior Programmer24-Oct-03 3:58
Iain Clarke, Warrior Programmer24-Oct-03 3:58 
GeneralUsing CriticalSections and Components Pin
Paul Farry23-Oct-03 12:56
professionalPaul Farry23-Oct-03 12:56 
GeneralRe: Using CriticalSections and Components Pin
Iain Clarke, Warrior Programmer24-Oct-03 4:02
Iain Clarke, Warrior Programmer24-Oct-03 4:02 
It is less simple than that. You need to put Enter/LeaveCritSect's around access to shared resources.
If each of your instances are independent, then you don't need any critical sections. You may need
CritSects in the sub-threads if they can collide when accesses common resources.

So the general answer is "it depends".

The fewer CriticalSections you have the better as it means your components will run that little bit
more smoothly, especially on multi-threaded systems. But it is more important to be safe.

I hope this sort-of-helps.

Iain.

GeneralCMonthCalCtrl MCN_SELECT problem Pin
asierra23-Oct-03 12:50
asierra23-Oct-03 12:50 
GeneralRe: CMonthCalCtrl MCN_SELECT problem Pin
Carlos Antollini23-Oct-03 13:07
Carlos Antollini23-Oct-03 13:07 
GeneralRe: CMonthCalCtrl MCN_SELECT problem Pin
asierra24-Oct-03 8:06
asierra24-Oct-03 8:06 
GeneralSSL & HTTPS PROXY Pin
Peter Weyzen23-Oct-03 11:01
Peter Weyzen23-Oct-03 11:01 
GeneralQuestion about CComboBoxEx Pin
dssuresh23-Oct-03 10:32
dssuresh23-Oct-03 10:32 
GeneralRe: Question about CComboBoxEx Pin
asierra23-Oct-03 12:56
asierra23-Oct-03 12:56 
GeneralRe: Question about CComboBoxEx Pin
dssuresh23-Oct-03 13:36
dssuresh23-Oct-03 13:36 
GeneralRe: Question about CComboBoxEx Pin
asierra24-Oct-03 8:11
asierra24-Oct-03 8:11 
GeneralRe: Question about CComboBoxEx Pin
asierra27-Oct-03 5:01
asierra27-Oct-03 5:01 
GeneralRe: Question about CComboBoxEx Pin
Anonymous27-Oct-03 8:06
Anonymous27-Oct-03 8:06 
Generalkeyboard hook Pin
Will7123-Oct-03 9:30
Will7123-Oct-03 9:30 
GeneralRe: keyboard hook Pin
David Crow23-Oct-03 10:16
David Crow23-Oct-03 10:16 
GeneralRe: keyboard hook Pin
Will7123-Oct-03 11:20
Will7123-Oct-03 11:20 
GeneralRe: keyboard hook Pin
David Crow23-Oct-03 16:41
David Crow23-Oct-03 16:41 
General"Receiving" Messages form another Thread Pin
User-37793623-Oct-03 8:52
User-37793623-Oct-03 8:52 
GeneralRe: "Receiving" Messages form another Thread Pin
Rickard Andersson2023-Oct-03 10:42
Rickard Andersson2023-Oct-03 10:42 
GeneralRe: "Receiving" Messages form another Thread Pin
Michael Dunn23-Oct-03 11:23
sitebuilderMichael Dunn23-Oct-03 11:23 

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.