Click here to Skip to main content
16,005,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncan I have two command objects w same connection? Pin
ns22-Aug-02 16:34
ns22-Aug-02 16:34 
AnswerRe: can I have two command objects w same connection? Pin
Le centriste22-Aug-02 18:18
Le centriste22-Aug-02 18:18 
GeneralThanks for your responses. Pin
ns23-Aug-02 3:08
ns23-Aug-02 3:08 
AnswerRe: can I have two command objects w same connection? Pin
Michael P Butler23-Aug-02 0:52
Michael P Butler23-Aug-02 0:52 
GeneralIs this correct? new char of length.... Pin
ns22-Aug-02 15:02
ns22-Aug-02 15:02 
GeneralRe: Is this correct? new char of length.... Pin
Christian Graus22-Aug-02 15:44
protectorChristian Graus22-Aug-02 15:44 
GeneralRe: Is this correct? new char of length.... Pin
Tim Smith22-Aug-02 15:42
Tim Smith22-Aug-02 15:42 
GeneralDifference between WM_USER and WM_APP Pin
alschneider22-Aug-02 12:16
alschneider22-Aug-02 12:16 
I recently had an issue with a timer that was assigned a value of WM_USER + 200. This introduced an intermittent bug in my document based app whenever the view was refreshed. I found that the value WM_USER+200 conflicted with the CMD_LAST in commdlg.h
<br />
#define CDM_LAST        (WM_USER + 200)<br />


I started investigating and found that WM_USER houses messages that are used by dialog controls. According to MSDN:

These values cannot be used to define messages that are meaningful throughout an application, because some predefined window classes already define values in this range. For example, predefined control classes such as BUTTON, EDIT, LISTBOX, and COMBOBOX may use these values. 


Instead, it implied that WM_APP should be used for app specific event handling. But yet in a lot of examples I've seen they always use WM_USER + X.

I changed my define to WM_APP+2 and it works great! No more phantom bug.

QUESTION: Does anyone have any insight into the difference between WM_USER and WM_APP. What should dictate which is used?

Roll eyes | :rolleyes: Thanks in advance for any help.




Alan Schneider
BET Inc.
GeneralRe: Difference between WM_USER and WM_APP Pin
Michael Dunn22-Aug-02 13:53
sitebuilderMichael Dunn22-Aug-02 13:53 
GeneralRe: Difference between WM_USER and WM_APP Pin
Nish Nishant22-Aug-02 14:36
sitebuilderNish Nishant22-Aug-02 14:36 
QuestionHow to create a net share to a specific user remotly? Pin
Anonymous22-Aug-02 11:23
Anonymous22-Aug-02 11:23 
GeneralRebase does not strip my debug symbols Pin
Ernesto Perales Soto22-Aug-02 11:18
Ernesto Perales Soto22-Aug-02 11:18 
GeneralRe: Rebase does not strip my debug symbols Pin
Mike Nordell25-Aug-02 3:32
Mike Nordell25-Aug-02 3:32 
GeneralRe: Rebase does not strip my debug symbols Pin
Ernesto Perales Soto26-Aug-02 3:19
Ernesto Perales Soto26-Aug-02 3:19 
Questioncom? Pin
imran_rafique22-Aug-02 10:56
imran_rafique22-Aug-02 10:56 
AnswerRe: com? Pin
jmkhael22-Aug-02 13:03
jmkhael22-Aug-02 13:03 
AnswerRe: com? Pin
Michael Dunn22-Aug-02 13:54
sitebuilderMichael Dunn22-Aug-02 13:54 
GeneralVC++ 6.0 hangs during link on WinXP Pin
txseedhead22-Aug-02 10:38
txseedhead22-Aug-02 10:38 
GeneralRe: VC++ 6.0 hangs during link on WinXP Pin
Daniel Turini22-Aug-02 10:55
Daniel Turini22-Aug-02 10:55 
GeneralRe: VC++ 6.0 hangs during link on WinXP Pin
txseedhead22-Aug-02 11:11
txseedhead22-Aug-02 11:11 
GeneralRe: VC++ 6.0 hangs during link on WinXP Pin
Tomasz Sowinski22-Aug-02 11:15
Tomasz Sowinski22-Aug-02 11:15 
GeneralRe: VC++ 6.0 hangs during link on WinXP Pin
Mike Nordell25-Aug-02 3:34
Mike Nordell25-Aug-02 3:34 
Questionhow to compare _variant_t with "a" Pin
ns22-Aug-02 10:20
ns22-Aug-02 10:20 
AnswerRe: how to compare _variant_t with "a" Pin
Daniel Turini22-Aug-02 10:28
Daniel Turini22-Aug-02 10:28 
AnswerRe: how to compare _variant_t with "a" Pin
Michael Dunn22-Aug-02 10:29
sitebuilderMichael Dunn22-Aug-02 10:29 

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.