Click here to Skip to main content
15,113,057 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ class hierarchy design problem Pin
code_slashxx9-Apr-10 18:38
Membercode_slashxx9-Apr-10 18:38 
GeneralRe: C++ class hierarchy design problem Pin
kylur12-Apr-10 11:10
Memberkylur12-Apr-10 11:10 
QuestionCan PostThreadMessage Post to a Thread in a Different Process Pin
ForNow9-Apr-10 8:50
MemberForNow9-Apr-10 8:50 
AnswerRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
Code-o-mat9-Apr-10 11:48
MemberCode-o-mat9-Apr-10 11:48 
GeneralRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
ForNow9-Apr-10 12:03
MemberForNow9-Apr-10 12:03 
GeneralRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
Code-o-mat9-Apr-10 12:11
MemberCode-o-mat9-Apr-10 12:11 
GeneralRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
Adam Roderick J9-Apr-10 20:25
MemberAdam Roderick J9-Apr-10 20:25 
AnswerRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
cmk9-Apr-10 16:15
Membercmk9-Apr-10 16:15 
They are saying is that WM_USER and above are application specific. It's possible for WM_USER+1 to mean one thing in one app and another thing in another app. It is your responsibility to make sure they mean the same thing.

e.g.
Process A: #define WM_MYFOO WM_USER+10
Process B: #define WM_MYFOO WM_USER+11

This would be bad as the code would likely be:
Process A: PostThreadMessage(WM_MYFOO)
Process B: if( msg == WM_MYFOO )
and process B would think it's getting a different message.

Usually not an issue as both processes should use a common header that defines WM_MYFOO.

The same goes for whatever you pass as LPARAM and WPARAM.
...cmk

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack

AnswerRe: Can PostThreadMessage Post to a Thread in a Different Process [modified] Pin
Adam Roderick J9-Apr-10 19:58
MemberAdam Roderick J9-Apr-10 19:58 
QuestionDestructElements() and destructor not getting called Pin
David Crow9-Apr-10 7:34
MemberDavid Crow9-Apr-10 7:34 
AnswerRe: DestructElements() and destructor not getting called Pin
Chris Losinger9-Apr-10 7:41
professionalChris Losinger9-Apr-10 7:41 
GeneralRe: DestructElements() and destructor not getting called Pin
David Crow9-Apr-10 8:37
MemberDavid Crow9-Apr-10 8:37 
GeneralRe: DestructElements() and destructor not getting called Pin
Chris Losinger9-Apr-10 8:49
professionalChris Losinger9-Apr-10 8:49 
QuestionRe: DestructElements() and destructor not getting called Pin
David Crow9-Apr-10 8:59
MemberDavid Crow9-Apr-10 8:59 
AnswerRe: DestructElements() and destructor not getting called Pin
Chris Losinger9-Apr-10 9:08
professionalChris Losinger9-Apr-10 9:08 
AnswerRe: DestructElements() and destructor not getting called Pin
Eugen Podsypalnikov9-Apr-10 9:58
MemberEugen Podsypalnikov9-Apr-10 9:58 
GeneralRe: DestructElements() and destructor not getting called Pin
David Crow9-Apr-10 10:21
MemberDavid Crow9-Apr-10 10:21 
GeneralRe: DestructElements() and destructor not getting called Pin
Moak9-Apr-10 11:14
MemberMoak9-Apr-10 11:14 
GeneralRe: DestructElements() and destructor not getting called Pin
Eugen Podsypalnikov9-Apr-10 11:43
MemberEugen Podsypalnikov9-Apr-10 11:43 
AnswerRe: DestructElements() and destructor not getting called Pin
CPallini9-Apr-10 12:41
mveCPallini9-Apr-10 12:41 
AnswerRe: DestructElements() and destructor not getting called Pin
Ajay Vijayvargiya11-Apr-10 5:34
MemberAjay Vijayvargiya11-Apr-10 5:34 
QuestionReg to Unicode and MBCS problem in socket programing Pin
rrthangavel9-Apr-10 6:19
Memberrrthangavel9-Apr-10 6:19 
QuestionRe: Reg to Unicode and MBCS problem in socket programing Pin
CPallini9-Apr-10 8:21
mveCPallini9-Apr-10 8:21 
AnswerRe: Reg to Unicode and MBCS problem in socket programing Pin
Migounette10-Apr-10 2:46
MemberMigounette10-Apr-10 2:46 
AnswerRe: Reg to Unicode and MBCS problem in socket programing Pin
Ajay Vijayvargiya11-Apr-10 5:40
MemberAjay Vijayvargiya11-Apr-10 5:40 

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.