Click here to Skip to main content
15,923,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Current working directory in unix Pin
Ravi Bhavnani26-Jun-05 18:39
professionalRavi Bhavnani26-Jun-05 18:39 
GeneralRe: Current working directory in unix Pin
Weiye Chen26-Jun-05 18:46
Weiye Chen26-Jun-05 18:46 
GeneralRe: Current working directory in unix Pin
Ravi Bhavnani26-Jun-05 18:51
professionalRavi Bhavnani26-Jun-05 18:51 
GeneralEM_SETSEL -- Edit Control Messages Pin
c121hains26-Jun-05 16:28
c121hains26-Jun-05 16:28 
GeneralEdit and Rich Edit TEXT BOX Pin
c121hains27-Jun-05 20:32
c121hains27-Jun-05 20:32 
GeneralInitializeCriticalSection and LeaveCriticalSection Pin
yccheok26-Jun-05 15:21
yccheok26-Jun-05 15:21 
GeneralRe: InitializeCriticalSection and LeaveCriticalSection Pin
valikac26-Jun-05 16:38
valikac26-Jun-05 16:38 
GeneralRe: InitializeCriticalSection and LeaveCriticalSection Pin
Jose Lamas Rios26-Jun-05 17:34
Jose Lamas Rios26-Jun-05 17:34 
InitializeCriticalSection should be called only once by the process before the threads can use it. Those threads shouldn't call InitializeCriticalSection, but rather EnterCriticalSection or TryEnterCriticalSection in order to gain the ownership of the critical section (which may imply waiting for some other thread to release it). Once a thread obtained ownership of the critical section, and after using it, it should call LeaveCriticalSection to release it. No more than one thread will call LeaveCriticalSection at the same time, because only one thread can own the critical section at the same time (that's why they are using a critical section in the first place Smile | :) ).

More info can be found here[^] and here[^].


--
jlr
http://jlamas.blogspot.com/[^]
GeneralRe: InitializeCriticalSection and LeaveCriticalSection Pin
ThatsAlok26-Jun-05 19:06
ThatsAlok26-Jun-05 19:06 
GeneralNamespace extension Pin
Gurra_Koo26-Jun-05 14:45
Gurra_Koo26-Jun-05 14:45 
GeneralHELP: unfamiliar C++ syntax Pin
kevingpo26-Jun-05 14:12
kevingpo26-Jun-05 14:12 
GeneralRe: HELP: unfamiliar C++ syntax Pin
kevingpo26-Jun-05 14:35
kevingpo26-Jun-05 14:35 
GeneralRe: HELP: unfamiliar C++ syntax Pin
Nemanja Trifunovic26-Jun-05 15:08
Nemanja Trifunovic26-Jun-05 15:08 
GeneralRe: HELP: unfamiliar C++ syntax Pin
Nemanja Trifunovic26-Jun-05 15:05
Nemanja Trifunovic26-Jun-05 15:05 
GeneralRe: HELP: unfamiliar C++ syntax Pin
toxcct26-Jun-05 21:01
toxcct26-Jun-05 21:01 
Generalsorry for a non-c++ quwstion: PDF format Pin
includeh1026-Jun-05 12:55
includeh1026-Jun-05 12:55 
GeneralRe: sorry for a non-c++ quwstion: PDF format Pin
Christian Graus26-Jun-05 16:03
protectorChristian Graus26-Jun-05 16:03 
GeneralRe: sorry for a non-c++ quwstion: PDF format Pin
Steve Mayfield26-Jun-05 16:30
Steve Mayfield26-Jun-05 16:30 
GeneralRe: sorry for a non-c++ quwstion: PDF format Pin
Steve Mayfield26-Jun-05 16:18
Steve Mayfield26-Jun-05 16:18 
Generalautocomplete members in class context Pin
bruce2g26-Jun-05 11:44
bruce2g26-Jun-05 11:44 
GeneralRe: autocomplete members in class context Pin
Jörgen Sigvardsson26-Jun-05 11:56
Jörgen Sigvardsson26-Jun-05 11:56 
QuestionOnTimer?? Pin
Larsson26-Jun-05 11:11
Larsson26-Jun-05 11:11 
Questionneed a multimedia library!? Pin
ThinkingPrometheus26-Jun-05 10:34
ThinkingPrometheus26-Jun-05 10:34 
AnswerRe: need a multimedia library!? Pin
Christian Graus26-Jun-05 16:03
protectorChristian Graus26-Jun-05 16:03 
Questionhow to get control of flash formular? Pin
Anonymous26-Jun-05 10:23
Anonymous26-Jun-05 10: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.