Click here to Skip to main content
15,914,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerVC++ debugging with latest Avira Antivir Pin
Alexander Fedorov10-Dec-10 2:33
Alexander Fedorov10-Dec-10 2:33 
QuestionUsing WM_USER, WM_APP or RegisterWindowMessage Pin
yccheok9-Dec-10 21:25
yccheok9-Dec-10 21:25 
AnswerRe: Using WM_USER, WM_APP or RegisterWindowMessage [modified] Pin
CPallini9-Dec-10 22:08
mveCPallini9-Dec-10 22:08 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
Rajesh R Subramanian9-Dec-10 23:43
professionalRajesh R Subramanian9-Dec-10 23:43 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
CPallini9-Dec-10 23:48
mveCPallini9-Dec-10 23:48 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
Rajesh R Subramanian9-Dec-10 23:51
professionalRajesh R Subramanian9-Dec-10 23:51 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
CPallini10-Dec-10 0:11
mveCPallini10-Dec-10 0:11 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
Rajesh R Subramanian10-Dec-10 0:24
professionalRajesh R Subramanian10-Dec-10 0:24 
CPallini wrote:
The DLL is mapped in the executable address space, isn't it?


So, are you telling that using a hardwired message ID is better than having the OS register a dynamic ID for us? Also, the DLL could be mapped into my address space, but it's still a different entity. If I keep on assigning WM_USER + based messages for all my handlers, that would certainly be

1. Poor programming technique
2. Could be error prone, as I might accidentally type in something else (and there are a few more points that the article discusses)
3. Some messages based at WM_USER + have been obsolete, which means that I could possibly collide into what's a standard windows message.
4. And the worst thing is that SOMEONE ELSE can come up with the same message ID and send it to you. (with dynamic creation, it's different, AND unique each time).

CPallini wrote:
Using Spy++ (or another hook mechanism) you may know about.


Like I said, if you would want to hack, there's no limits to it. Smile | :)
It was ever thus, the Neophiles will always rush out and get 'The Latest Thing' at a high price and with all the inherent faults - Dalek Dave.

GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
CPallini10-Dec-10 0:41
mveCPallini10-Dec-10 0:41 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
Rajesh R Subramanian10-Dec-10 0:54
professionalRajesh R Subramanian10-Dec-10 0:54 
JokeRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
CPallini10-Dec-10 1:02
mveCPallini10-Dec-10 1:02 
AnswerRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
Rajesh R Subramanian9-Dec-10 23:42
professionalRajesh R Subramanian9-Dec-10 23:42 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
CPallini9-Dec-10 23:50
mveCPallini9-Dec-10 23:50 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
Rajesh R Subramanian9-Dec-10 23:53
professionalRajesh R Subramanian9-Dec-10 23:53 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
CPallini10-Dec-10 0:21
mveCPallini10-Dec-10 0:21 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
Rajesh R Subramanian10-Dec-10 0:25
professionalRajesh R Subramanian10-Dec-10 0:25 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
CPallini10-Dec-10 0:23
mveCPallini10-Dec-10 0:23 
JokeRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
Rajesh R Subramanian10-Dec-10 0:30
professionalRajesh R Subramanian10-Dec-10 0:30 
AnswerRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
Gary R. Wheeler11-Dec-10 1:31
Gary R. Wheeler11-Dec-10 1:31 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
yccheok12-Dec-10 18:51
yccheok12-Dec-10 18:51 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
Gary R. Wheeler13-Dec-10 11:45
Gary R. Wheeler13-Dec-10 11:45 
QuestionPassing Array To Function & Displaying Array Contents. Pin
Mike Certini9-Dec-10 18:41
Mike Certini9-Dec-10 18:41 
AnswerRe: Passing Array To Function & Displaying Array Contents. Pin
Cedric Moonen9-Dec-10 20:25
Cedric Moonen9-Dec-10 20:25 
GeneralRe: Passing Array To Function & Displaying Array Contents. Pin
Mike Certini10-Dec-10 8:10
Mike Certini10-Dec-10 8:10 
GeneralRe: Passing Array To Function & Displaying Array Contents. Pin
Stefan_Lang14-Dec-10 6:54
Stefan_Lang14-Dec-10 6:54 

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.