Click here to Skip to main content
15,914,070 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why cannot get filename by handle directly Pin
Ravi Bhavnani27-Feb-05 10:47
professionalRavi Bhavnani27-Feb-05 10:47 
GeneralRe: Why cannot get filename by handle directly Pin
sprewellkobe27-Feb-05 16:03
sprewellkobe27-Feb-05 16:03 
QuestionHow can I get the version information about a DLL? Pin
jparsons27-Feb-05 7:15
jparsons27-Feb-05 7:15 
AnswerRe: How can I get the version information about a DLL? Pin
geo_m27-Feb-05 7:46
geo_m27-Feb-05 7:46 
AnswerRe: How can I get the version information about a DLL? Pin
Ravi Bhavnani27-Feb-05 9:20
professionalRavi Bhavnani27-Feb-05 9:20 
QuestionCan two thread run the same thread function at the same time? Pin
tttyip27-Feb-05 6:37
tttyip27-Feb-05 6:37 
AnswerRe: Can two thread run the same thread function at the same time? Pin
Ravi Bhavnani27-Feb-05 6:56
professionalRavi Bhavnani27-Feb-05 6:56 
AnswerRe: Can two thread run the same thread function at the same time? Pin
geo_m27-Feb-05 7:51
geo_m27-Feb-05 7:51 
Accessing the same function from two threads is generally ok. You only have to take care about shared resources - so variables inside the thread functions (on the stack) are ok, because each thread have it's own stack. Problem can be with accessing global variables, instances that more than one thread can access etc. Here you should use some synchronization.

Critical section is best (IMHO) on windows system, if you do not need to share the synchronization object for interprocess communication (one critical section can be used only inside one process).

Generally it's best to use some sort of RAII for the synchronization, although it have also it's problems.

There are some articles about synchronization issues around on CP, so you can check for them. In case, don't worry to ask.
GeneralWhat's The Best Way... Pin
LighthouseJ27-Feb-05 3:15
LighthouseJ27-Feb-05 3:15 
GeneralRe: What's The Best Way... Pin
Blake Miller28-Feb-05 5:58
Blake Miller28-Feb-05 5:58 
GeneralRe: What's The Best Way... Pin
LighthouseJ1-Mar-05 11:11
LighthouseJ1-Mar-05 11:11 
GeneralRe: What's The Best Way... Pin
Blake Miller1-Mar-05 12:21
Blake Miller1-Mar-05 12:21 
GeneralRe: What's The Best Way... Pin
LighthouseJ1-Mar-05 14:47
LighthouseJ1-Mar-05 14:47 
GeneralRe: What's The Best Way... Pin
PJ Arends28-Feb-05 6:02
professionalPJ Arends28-Feb-05 6:02 
GeneralWinHTTP, error 12175, howto Pin
qdzhulf27-Feb-05 3:10
qdzhulf27-Feb-05 3:10 
GeneralRe: WinHTTP, error 12175, howto Pin
KitchenMaster26-Feb-09 12:02
KitchenMaster26-Feb-09 12:02 
QuestionHow to catch events? Pin
Roozbeh6926-Feb-05 20:13
professionalRoozbeh6926-Feb-05 20:13 
GeneralPDF format Pin
Chna26-Feb-05 18:58
Chna26-Feb-05 18:58 
GeneralWhen to draw the focus rectangle Pin
Ron Waller26-Feb-05 17:38
Ron Waller26-Feb-05 17:38 
GeneralRe: When to draw the focus rectangle Pin
Ravi Bhavnani27-Feb-05 5:55
professionalRavi Bhavnani27-Feb-05 5:55 
GeneralRe: When to draw the focus rectangle Pin
Michael Dunn27-Feb-05 7:04
sitebuilderMichael Dunn27-Feb-05 7:04 
Generalrandom number between.... Pin
Raylan26-Feb-05 16:20
Raylan26-Feb-05 16:20 
GeneralRe: random number between.... Pin
Ravi Bhavnani26-Feb-05 16:28
professionalRavi Bhavnani26-Feb-05 16:28 
GeneralRe: random number between.... Pin
Sheng Jiang 蒋晟27-Feb-05 9:39
Sheng Jiang 蒋晟27-Feb-05 9:39 
Generalcolor values for palettes Pin
nm_11426-Feb-05 14:10
nm_11426-Feb-05 14:10 

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.