Click here to Skip to main content
15,891,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: change the highlight for a button Pin
Mark Salsbery13-Jan-07 10:20
Mark Salsbery13-Jan-07 10:20 
QuestionUSB port controlling in vc++ Pin
ahmad al-omar13-Jan-07 9:11
ahmad al-omar13-Jan-07 9:11 
AnswerRe: USB port controlling in vc++ Pin
Nader Elshehabi13-Jan-07 11:16
Nader Elshehabi13-Jan-07 11:16 
Questionitoa() arguments problem Pin
CAgent00713-Jan-07 7:50
CAgent00713-Jan-07 7:50 
AnswerRe: itoa() arguments problem Pin
Mark Salsbery13-Jan-07 9:11
Mark Salsbery13-Jan-07 9:11 
GeneralDoh!! Pin
CAgent00713-Jan-07 13:17
CAgent00713-Jan-07 13:17 
AnswerRe: itoa() arguments problem Pin
Dennis Gourjii13-Jan-07 9:12
Dennis Gourjii13-Jan-07 9:12 
QuestionMultithreaded appication design question Pin
softwaremonkey13-Jan-07 5:25
softwaremonkey13-Jan-07 5:25 
Hi,

I have a class which will be accessed by two or more threads and I wondered if what I have done is OK or if there is a better way. I have added a CCriticalSection class member which is initialised in the constructor. Then, each class method uses EnterCriticalSection and LeaveCriticalSection.

The problem is that there are 100 instances of this class and I wondered if having so many critical sections was a burden on the operating system. I thought of having a single CCriticalSection static class member but (rightly or wrongly) I figured that I would be unnecessaryly locking access to all instances and could end up with the code being locked most of the time.

I would really appreciate youe views on this. I understand the basics of multithreading but its still a bit of a mystery.

Sigh | :sigh:

TIA

Tony
AnswerRe: Multithreaded appication design question Pin
Mark Salsbery13-Jan-07 6:43
Mark Salsbery13-Jan-07 6:43 
GeneralRe: Multithreaded appication design question Pin
softwaremonkey13-Jan-07 7:32
softwaremonkey13-Jan-07 7:32 
QuestionString table and "an unnamed file" Pin
kdehairy13-Jan-07 5:16
kdehairy13-Jan-07 5:16 
QuestionMessage Box in Thread Pin
Max++13-Jan-07 4:59
Max++13-Jan-07 4:59 
AnswerRe: Message Box in Thread Pin
Eytukan13-Jan-07 21:59
Eytukan13-Jan-07 21:59 
AnswerRe: Message Box in Thread Pin
Eytukan14-Jan-07 17:38
Eytukan14-Jan-07 17:38 
Questionvs2005 migration issue Pin
sdfkfggh13-Jan-07 4:35
sdfkfggh13-Jan-07 4:35 
AnswerRe: vs2005 migration issue Pin
sdfkfggh13-Jan-07 5:14
sdfkfggh13-Jan-07 5:14 
GeneralRe: vs2005 migration issue Pin
Hamid_RT15-Jan-07 6:48
Hamid_RT15-Jan-07 6:48 
QuestionIs Transition to .NET The general trend? Pin
YoungYong, Park13-Jan-07 3:03
YoungYong, Park13-Jan-07 3:03 
AnswerRe: Is Transition to .NET The general trend? Pin
#realJSOP13-Jan-07 3:25
mve#realJSOP13-Jan-07 3:25 
QuestionHow to put the contain of textBox that related in button event to database access Pin
arif_setyawan13-Jan-07 2:33
arif_setyawan13-Jan-07 2:33 
AnswerRe: How to put the contain of textBox that related in button event to database access Pin
Hamid_RT15-Jan-07 6:47
Hamid_RT15-Jan-07 6:47 
QuestionXFS API Pin
Ghous Ahmed13-Jan-07 2:33
Ghous Ahmed13-Jan-07 2:33 
AnswerRe: XFS API Pin
Hamid_RT13-Jan-07 2:41
Hamid_RT13-Jan-07 2:41 
AnswerRe: XFS API Pin
viewman4-Jul-12 20:54
viewman4-Jul-12 20:54 
Questionhow to retrieve the application running in a remote computer? Pin
vedhapsg12-Jan-07 22:51
vedhapsg12-Jan-07 22: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.