Click here to Skip to main content
15,917,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert _variant_t to char* Pin
lemonash12-Dec-09 4:11
lemonash12-Dec-09 4:11 
QuestionTransparent Window in Remote desktop [modified] Pin
Cvaji11-Dec-09 1:15
Cvaji11-Dec-09 1:15 
AnswerRe: Transparent Window in Remote desktop Pin
Migounette11-Dec-09 6:09
Migounette11-Dec-09 6:09 
QuestionDifference between EndDialog and EndWindow? Pin
Prabhu09200911-Dec-09 0:22
Prabhu09200911-Dec-09 0:22 
AnswerRe: Difference between EndDialog and EndWindow? Pin
Adam Roderick J11-Dec-09 0:42
Adam Roderick J11-Dec-09 0:42 
AnswerRe: Difference between EndDialog and EndWindow? Pin
Richard MacCutchan11-Dec-09 0:54
mveRichard MacCutchan11-Dec-09 0:54 
AnswerRe: Difference between EndDialog and EndWindow? Pin
Rajesh R Subramanian11-Dec-09 1:30
professionalRajesh R Subramanian11-Dec-09 1:30 
Questionerror LNK2005: Pin
Benjamin Bruno10-Dec-09 23:56
Benjamin Bruno10-Dec-09 23:56 
AnswerRe: error LNK2005: Pin
Rajesh R Subramanian11-Dec-09 0:02
professionalRajesh R Subramanian11-Dec-09 0:02 
AnswerRe: error LNK2005: Pin
Richard MacCutchan11-Dec-09 0:55
mveRichard MacCutchan11-Dec-09 0:55 
AnswerRe: error LNK2005: Pin
KarstenK11-Dec-09 1:08
mveKarstenK11-Dec-09 1:08 
GeneralRe: error LNK2005: Pin
Benjamin Bruno11-Dec-09 20:10
Benjamin Bruno11-Dec-09 20:10 
GeneralRe: error LNK2005: Pin
KarstenK13-Dec-09 21:26
mveKarstenK13-Dec-09 21:26 
QuestionChild Dialog gets hidden behind activex control [modified] Pin
indra27110-Dec-09 23:27
indra27110-Dec-09 23:27 
AnswerRe: Child Dialog gets hidden behind activex control Pin
Richard MacCutchan11-Dec-09 0:52
mveRichard MacCutchan11-Dec-09 0:52 
GeneralRe: Child Dialog gets hidden behind activex control Pin
indra27111-Dec-09 4:55
indra27111-Dec-09 4:55 
GeneralRe: Child Dialog gets hidden behind activex control Pin
Abhi Lahare11-Dec-09 5:26
Abhi Lahare11-Dec-09 5:26 
GeneralRe: Child Dialog gets hidden behind activex control Pin
Richard MacCutchan11-Dec-09 5:29
mveRichard MacCutchan11-Dec-09 5:29 
Questionmaking an non-blocking call in VC++ Pin
hrishiS10-Dec-09 23:03
hrishiS10-Dec-09 23:03 
AnswerRe: making an non-blocking call in VC++ Pin
CPallini10-Dec-09 23:15
mveCPallini10-Dec-09 23:15 
AnswerRe: making an non-blocking call in VC++ Pin
Cedric Moonen10-Dec-09 23:21
Cedric Moonen10-Dec-09 23:21 
You have to use events for that: you can wait (without consuming any CPU time) on an event to be notified. Typically what happens is that you have a thread pushing elements into your queue and a thread popping element from the queue. The thread popping elements wait on an event to be signaled by the other thread after he pushed something into the queue. You will also need to add proper synchronization on your queue to avoid accessing it from both threads at the same time.

I suggest you start by reading this article[^] which will give you an overview of threads and synchronization techniques.

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

AnswerRe: making an non-blocking call in VC++ Pin
Rajesh R Subramanian10-Dec-09 23:47
professionalRajesh R Subramanian10-Dec-09 23:47 
AnswerRe: making an non-blocking call in VC++ Pin
softwaremonkey11-Dec-09 4:48
softwaremonkey11-Dec-09 4:48 
QuestionCatching WM_POWERBROADCAST message Pin
Still learning how to code10-Dec-09 22:57
Still learning how to code10-Dec-09 22:57 
AnswerRe: Catching WM_POWERBROADCAST message Pin
KarstenK11-Dec-09 1:04
mveKarstenK11-Dec-09 1:04 

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.