Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to check a DateTimeCtrl field is dirty or not in MFC Pin
Richard MacCutchan7-May-14 22:08
mveRichard MacCutchan7-May-14 22:08 
AnswerRe: How to check a DateTimeCtrl field is dirty or not in MFC Pin
David Crow9-May-14 3:35
David Crow9-May-14 3:35 
QuestionScreensaver: keyboard and mouse hook and kill screensaver Pin
Drugodrf7-May-14 7:34
Drugodrf7-May-14 7:34 
AnswerRe: Screensaver: keyboard and mouse hook and kill screensaver Pin
Drugodrf9-May-14 11:20
Drugodrf9-May-14 11:20 
GeneralRe: Screensaver: keyboard and mouse hook and kill screensaver Pin
Drugodrf10-May-14 5:18
Drugodrf10-May-14 5:18 
QuestionDocumentProperties() cause a First-chance exception Pin
Drugodrf7-May-14 7:17
Drugodrf7-May-14 7:17 
QuestionRe: DocumentProperties() cause a First-chance exception Pin
Richard MacCutchan7-May-14 22:06
mveRichard MacCutchan7-May-14 22:06 
AnswerRe: DocumentProperties() cause a First-chance exception Pin
Drugodrf7-May-14 23:13
Drugodrf7-May-14 23:13 
GeneralRe: DocumentProperties() cause a First-chance exception Pin
Richard MacCutchan7-May-14 23:21
mveRichard MacCutchan7-May-14 23:21 
GeneralRe: DocumentProperties() cause a First-chance exception Pin
Drugodrf9-May-14 2:04
Drugodrf9-May-14 2:04 
GeneralRe: DocumentProperties() cause a First-chance exception Pin
Richard MacCutchan9-May-14 2:19
mveRichard MacCutchan9-May-14 2:19 
GeneralRe: DocumentProperties() cause a First-chance exception Pin
Drugodrf9-May-14 3:03
Drugodrf9-May-14 3:03 
QuestionSendMessageCallback() - what is execution context of callback function Pin
Derell Licht7-May-14 7:07
professionalDerell Licht7-May-14 7:07 
I have a technique that I use in WinAPI programs, to avoid stalling the message queue.

I start a separate thread in my program, which opens a hidden window with its own message queue. I typically call this thread the CommTask thread, since the first time I did this was to handle slow serial communications. When I want to perform a time-consuming task, I send a message to the CommTask thread using SendMessageCallback(), with a data packet telling it what to do.

When the CommTask thread completes handling of my message, my callback function gets executed.
What I don't know is, what thread is the callback function executing in?? Is it still in the CommTask thread, or has it somehow returned to my main program thread, or is there some other thread context that it executes in?
AnswerRe: SendMessageCallback() - what is execution context of callback function Pin
CPallini8-May-14 0:04
mveCPallini8-May-14 0:04 
GeneralRe: SendMessageCallback() - what is execution context of callback function Pin
Derell Licht8-May-14 5:02
professionalDerell Licht8-May-14 5:02 
QuestionCompiling C and C++ files together Pin
AmbiguousName7-May-14 6:59
AmbiguousName7-May-14 6:59 
AnswerRe: Compiling C and C++ files together Pin
Richard MacCutchan7-May-14 7:15
mveRichard MacCutchan7-May-14 7:15 
AnswerRe: Compiling C and C++ files together Pin
leon de boer15-May-14 4:44
leon de boer15-May-14 4:44 
QuestionWSACleanup delays when called how can I get around this? Pin
Member 43367557-May-14 6:18
Member 43367557-May-14 6:18 
AnswerRe: WSACleanup delays when called how can I get around this? Pin
Gisle Vanem8-May-14 23:30
Gisle Vanem8-May-14 23:30 
GeneralRe: WSACleanup delays when called how can I get around this? Pin
Member 433675510-May-14 5:50
Member 433675510-May-14 5:50 
QuestionMCI QUESTION!!! Is it different file extension name and codec? Pin
AmissU6-May-14 21:00
AmissU6-May-14 21:00 
QuestionCompiling VLC in Visual Studio 2013 Pin
Django_Untaken5-May-14 5:32
Django_Untaken5-May-14 5:32 
AnswerRe: Compiling VLC in Visual Studio 2013 Pin
leon de boer5-May-14 7:10
leon de boer5-May-14 7:10 
AnswerRe: Compiling VLC in Visual Studio 2013 Pin
Richard MacCutchan5-May-14 20:18
mveRichard MacCutchan5-May-14 20:18 

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.