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

C / C++ / MFC

 
QuestionSerial Comms Help Please! Pin
Member 138216012-Oct-05 6:34
Member 138216012-Oct-05 6:34 
AnswerRe: Serial Comms Help Please! Pin
Rage12-Oct-05 7:12
professionalRage12-Oct-05 7:12 
Questionproblems with WinINet.h with visual studio 2003 Pin
brwoodru12-Oct-05 6:18
brwoodru12-Oct-05 6:18 
AnswerRe: problems with WinINet.h with visual studio 2003 Pin
prasad_som12-Oct-05 21:24
prasad_som12-Oct-05 21:24 
QuestionProblems Bringing Active X Control (.ocx) Into An Application Pin
johndavis12-Oct-05 6:06
johndavis12-Oct-05 6:06 
QuestionDo I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Federico Milano12-Oct-05 5:55
Federico Milano12-Oct-05 5:55 
AnswerRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Rage12-Oct-05 7:05
professionalRage12-Oct-05 7:05 
GeneralRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Federico Milano12-Oct-05 7:38
Federico Milano12-Oct-05 7:38 
Actually, it's almost a purely theoretical point. I'm studing pthreads synchronization objects and I realized that using posix threads you can initialize a critical section statically assigning a value to a variable (the critical section is initialized in the data segment, by compiler generated code). In posix you also have a dynamic method to initialize a critical section, just like the win32 initializeCriticalSection. So, my question is: is there a way to initizalize a critical section statically in win32? And if it's not, what are the consecuences?: do I always need a procedure/function/method/piece of code in my process that it's executed by only one thread (for example, DllMain) to initialize a critical section by a call to InitializeCriticalSection? or there's another API function that initializes the critical section the first time a thread executes it and that in the subsequent executions for the same critical section doesn't do anything?

I know that it's hard to read my english because I'm not a native speaker. I really appreciate your effort and I would be really pleased of getting anwers, suggestions, comments...

Thanks,

Federico
GeneralRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Blake V. Miller13-Oct-05 18:16
Blake V. Miller13-Oct-05 18:16 
GeneralRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Federico Milano14-Oct-05 2:20
Federico Milano14-Oct-05 2:20 
GeneralRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Blake V. Miller24-Nov-05 9:09
Blake V. Miller24-Nov-05 9:09 
QuestionExecute and retrieve data from console Pin
schemp9812-Oct-05 5:11
schemp9812-Oct-05 5:11 
QuestionRe: Execute and retrieve data from console Pin
David Crow12-Oct-05 6:22
David Crow12-Oct-05 6:22 
AnswerRe: Execute and retrieve data from console Pin
schemp9812-Oct-05 7:09
schemp9812-Oct-05 7:09 
GeneralRe: Execute and retrieve data from console Pin
Rage12-Oct-05 7:26
professionalRage12-Oct-05 7:26 
GeneralRe: Execute and retrieve data from console Pin
David Crow12-Oct-05 7:33
David Crow12-Oct-05 7:33 
QuestionGetting IP Address through WMI Pin
qrverona12-Oct-05 4:23
qrverona12-Oct-05 4:23 
AnswerRe: Getting IP Address through WMI Pin
David Crow12-Oct-05 6:31
David Crow12-Oct-05 6:31 
QuestionApplication getting stuck because of load ? Pin
Amarelia12-Oct-05 3:25
Amarelia12-Oct-05 3:25 
AnswerRe: Application getting stuck because of load ? Pin
John M. Drescher12-Oct-05 5:08
John M. Drescher12-Oct-05 5:08 
AnswerRe: Application getting stuck because of load ? Pin
Bob Stanneveld12-Oct-05 6:01
Bob Stanneveld12-Oct-05 6:01 
GeneralRe: Application getting stuck because of load ? Pin
Amarelia12-Oct-05 22:17
Amarelia12-Oct-05 22:17 
QuestionRe: Application getting stuck because of load ? Pin
David Crow13-Oct-05 3:05
David Crow13-Oct-05 3:05 
AnswerRe: Application getting stuck because of load ? Pin
Amarelia13-Oct-05 3:09
Amarelia13-Oct-05 3:09 
GeneralRe: Application getting stuck because of load ? Pin
David Crow13-Oct-05 3:38
David Crow13-Oct-05 3:38 

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.