Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Perform Logical operation Pin
Cedric Moonen3-Jun-07 21:03
Cedric Moonen3-Jun-07 21:03 
GeneralRe: How to Perform Logical operation Pin
Shah Satish3-Jun-07 22:47
Shah Satish3-Jun-07 22:47 
AnswerRe: How to Perform Logical operation Pin
Wim Engberts4-Jun-07 0:31
Wim Engberts4-Jun-07 0:31 
GeneralRe: How to Perform Logical operation Pin
Shah Satish4-Jun-07 0:51
Shah Satish4-Jun-07 0:51 
QuestionCMutex usage Pin
anilkrupakar3-Jun-07 20:03
anilkrupakar3-Jun-07 20:03 
GeneralRe: CMutex usage Pin
Rajkumar R3-Jun-07 21:29
Rajkumar R3-Jun-07 21:29 
GeneralRe: CMutex usage Pin
Rajkumar R3-Jun-07 21:38
Rajkumar R3-Jun-07 21:38 
AnswerRe: CMutex usage Pin
richard sancenot4-Jun-07 3:43
richard sancenot4-Jun-07 3:43 
CMutex is a syncrhonisation object that is very close to CCriticalSection.
The only difference is that CMutex can be shared accross different processes.

At the startup of your application, initialize a new instance like that :

CMutex test(TRUE,_T("MyMutex"));
The name of the mutex is very important of course, it allows windows to link different mutex that have the same name.

Call Lock() to enter a critical section, if another thread has already entered this portion of code, then you thread will wait for the other one to leave the section before entering.

Call Unlock() when you are done with database calls






Tout programme dont la fiabilité dépend de l'homme n'est pas fiable

Questionoverload << operator in C++ Pin
Karismatic3-Jun-07 19:52
Karismatic3-Jun-07 19:52 
JokeRe: overload << operator in C++ Pin
_AnsHUMAN_ 3-Jun-07 20:18
_AnsHUMAN_ 3-Jun-07 20:18 
GeneralRe: overload << operator in C++ Pin
leckey4-Jun-07 8:43
leckey4-Jun-07 8:43 
AnswerRe: overload << operator in C++ Pin
CPallini3-Jun-07 21:13
mveCPallini3-Jun-07 21:13 
AnswerRe: overload << operator in C++ Pin
Hamid_RT3-Jun-07 22:09
Hamid_RT3-Jun-07 22:09 
AnswerHOMEWORK ALERT (again) Pin
leckey4-Jun-07 8:40
leckey4-Jun-07 8:40 
QuestionHow to import a namespace Pin
john56323-Jun-07 19:06
john56323-Jun-07 19:06 
AnswerRe: How to import a namespace Pin
Tim Paaschen3-Jun-07 19:20
Tim Paaschen3-Jun-07 19:20 
QuestionRe: How to import a namespace Pin
john56323-Jun-07 19:35
john56323-Jun-07 19:35 
AnswerRe: How to import a namespace Pin
Tim Paaschen3-Jun-07 23:35
Tim Paaschen3-Jun-07 23:35 
QuestionVideo Display Pin
tyagineha3-Jun-07 18:57
tyagineha3-Jun-07 18:57 
AnswerRe: Video Display Pin
Christian Graus3-Jun-07 19:33
protectorChristian Graus3-Jun-07 19:33 
AnswerRe: Video Display Pin
Amar Sutar3-Jun-07 20:25
Amar Sutar3-Jun-07 20:25 
QuestionRe: Video Display Pin
tyagineha4-Jun-07 0:24
tyagineha4-Jun-07 0:24 
QuestionError in reload operator Pin
Chen-XuNuo3-Jun-07 18:56
Chen-XuNuo3-Jun-07 18:56 
AnswerRe: Error in reload operator Pin
Rajkumar R3-Jun-07 19:46
Rajkumar R3-Jun-07 19:46 
GeneralRe: Error in reload operator Pin
Chen-XuNuo3-Jun-07 19:52
Chen-XuNuo3-Jun-07 19:52 

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.