Click here to Skip to main content
15,877,637 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: C program to start before windows boot Pin
Richard MacCutchan23-Jul-11 6:22
mveRichard MacCutchan23-Jul-11 6:22 
AnswerRe: C program to start before windows boot Pin
Rajesh R Subramanian23-Jul-11 6:56
professionalRajesh R Subramanian23-Jul-11 6:56 
GeneralRe: C program to start before windows boot Pin
Albert Holguin23-Jul-11 8:07
professionalAlbert Holguin23-Jul-11 8:07 
AnswerRe: C program to start before windows boot Pin
ayandelhi23-Jul-11 22:11
ayandelhi23-Jul-11 22:11 
GeneralRe: C program to start before windows boot Pin
Richard MacCutchan23-Jul-11 22:26
mveRichard MacCutchan23-Jul-11 22:26 
GeneralRe: C program to start before windows boot Pin
ayandelhi24-Jul-11 1:03
ayandelhi24-Jul-11 1:03 
GeneralRe: C program to start before windows boot Pin
Randor 24-Jul-11 1:04
professional Randor 24-Jul-11 1:04 
GeneralRe: C program to start before windows boot Pin
ayandelhi24-Jul-11 1:10
ayandelhi24-Jul-11 1:10 
AnswerRe: C program to start before windows boot Pin
Stefan_Lang24-Jul-11 23:14
Stefan_Lang24-Jul-11 23:14 
GeneralRe: C program to start before windows boot Pin
ayandelhi25-Jul-11 1:02
ayandelhi25-Jul-11 1:02 
AnswerRe: C program to start before windows boot Pin
cmk25-Jul-11 8:44
cmk25-Jul-11 8:44 
AnswerRe: C program to start before windows boot Pin
Ni740826-Jul-11 2:01
Ni740826-Jul-11 2:01 
GeneralRe: C program to start before windows boot Pin
ayandelhi26-Jul-11 3:24
ayandelhi26-Jul-11 3:24 
QuestionProblems with structures Pin
rahul.kulshreshtha22-Jul-11 20:45
rahul.kulshreshtha22-Jul-11 20:45 
QuestionRe: Problems with structures Pin
Rajesh R Subramanian22-Jul-11 21:04
professionalRajesh R Subramanian22-Jul-11 21: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.