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

C / C++ / MFC

 
AnswerRe: Visual C++ 2008 and Ultragrid 2.0 Pin
Maximilien25-Jul-11 3:27
Maximilien25-Jul-11 3:27 
QuestionHelp Regarding XML Parsing Pin
pix_programmer24-Jul-11 19:55
pix_programmer24-Jul-11 19:55 
AnswerRe: Help Regarding XML Parsing Pin
_AnsHUMAN_ 24-Jul-11 20:32
_AnsHUMAN_ 24-Jul-11 20:32 
GeneralRe: Help Regarding XML Parsing Pin
pix_programmer24-Jul-11 20:52
pix_programmer24-Jul-11 20:52 
GeneralRe: Help Regarding XML Parsing Pin
_AnsHUMAN_ 24-Jul-11 22:46
_AnsHUMAN_ 24-Jul-11 22:46 
QuestionHow to get unplug the Ethernet cable message in WSAAsyncSelect ? Pin
wangningyu24-Jul-11 16:00
wangningyu24-Jul-11 16:00 
AnswerRe: How to get unplug the Ethernet cable message in WSAAsyncSelect ? Pin
Richard MacCutchan24-Jul-11 21:11
mveRichard MacCutchan24-Jul-11 21:11 
GeneralRe: How to get unplug the Ethernet cable message in WSAAsyncSelect ? Pin
wangningyu24-Jul-11 21:21
wangningyu24-Jul-11 21:21 
GeneralRe: How to get unplug the Ethernet cable message in WSAAsyncSelect ? Pin
Richard MacCutchan24-Jul-11 23:12
mveRichard MacCutchan24-Jul-11 23:12 
GeneralRe: How to get unplug the Ethernet cable message in WSAAsyncSelect ? Pin
wangningyu24-Jul-11 23:13
wangningyu24-Jul-11 23:13 
QuestionVisual C++ Express receiving a custom message Pin
martinmos23-Jul-11 8:18
martinmos23-Jul-11 8:18 
AnswerRe: Visual C++ Express receiving a custom message Pin
Albert Holguin23-Jul-11 8:58
professionalAlbert Holguin23-Jul-11 8:58 
GeneralRe: Visual C++ Express receiving a custom message [modified] Pin
martinmos23-Jul-11 9:12
martinmos23-Jul-11 9:12 
GeneralRe: Visual C++ Express receiving a custom message Pin
Albert Holguin23-Jul-11 19:37
professionalAlbert Holguin23-Jul-11 19:37 
GeneralRe: Visual C++ Express receiving a custom message Pin
martinmos23-Jul-11 22:53
martinmos23-Jul-11 22:53 
GeneralRe: Visual C++ Express receiving a custom message Pin
Albert Holguin25-Jul-11 4:07
professionalAlbert Holguin25-Jul-11 4:07 
GeneralRe: Visual C++ Express receiving a custom message Pin
martinmos25-Jul-11 11:12
martinmos25-Jul-11 11:12 
GeneralRe: Visual C++ Express receiving a custom message Pin
Albert Holguin25-Jul-11 12:30
professionalAlbert Holguin25-Jul-11 12:30 
AnswerRe: Visual C++ Express receiving a custom message Pin
Mark Salsbery23-Jul-11 12:29
Mark Salsbery23-Jul-11 12:29 
GeneralRe: Visual C++ Express receiving a custom message Pin
martinmos23-Jul-11 20:42
martinmos23-Jul-11 20:42 
GeneralRe: Visual C++ Express receiving a custom message Pin
Mark Salsbery23-Jul-11 21:07
Mark Salsbery23-Jul-11 21:07 
GeneralRe: Visual C++ Express receiving a custom message Pin
martinmos24-Jul-11 1:08
martinmos24-Jul-11 1:08 
GeneralRe: Visual C++ Express receiving a custom message Pin
Richard MacCutchan24-Jul-11 1:25
mveRichard MacCutchan24-Jul-11 1:25 
You should not be using SendMessage() inside your main message loop. The message loop (or pump) is just used to receive messages from the outside world and dispatch them to your message handling code inside your WndProc() procedure. Your scenario should be something like:
// App A
If SEND button is pressed
Then
    SendMessage(destWnd, myPrivateMessage, ...
End If
If other message ...
Then
    Take action as necessary

// App B
If myPrivateMessage is received
Then
    Do whatever ...
Endif
If other ... etc

All this code should be in the WndProc() functions which will only get invoked when a message is dispatched from the message loop.
The best things in life are not things.

GeneralRe: Visual C++ Express receiving a custom message Pin
martinmos24-Jul-11 5:37
martinmos24-Jul-11 5:37 
QuestionC program to start before windows boot Pin
ayandelhi23-Jul-11 4:31
ayandelhi23-Jul-11 4:31 

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.