Click here to Skip to main content
15,911,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: menus Pin
bugDanny5-Oct-05 3:13
bugDanny5-Oct-05 3:13 
Questionreading Å, Ä, Ö using FILE* and fopen Pin
anderslundsgard5-Oct-05 2:11
anderslundsgard5-Oct-05 2:11 
AnswerRe: reading Å, Ä, Ö using FILE* and fopen Pin
Jörgen Sigvardsson5-Oct-05 2:21
Jörgen Sigvardsson5-Oct-05 2:21 
AnswerRe: reading Å, Ä, Ö using FILE* and fopen Pin
kakan5-Oct-05 2:24
professionalkakan5-Oct-05 2:24 
QuestionGetSaveFileName more Info. Pin
.NetRams5-Oct-05 1:26
.NetRams5-Oct-05 1:26 
AnswerRe: GetSaveFileName more Info. Pin
David Crow5-Oct-05 4:00
David Crow5-Oct-05 4:00 
QuestionInconsistency in balloon tool tip Pin
Asha Udupa5-Oct-05 1:16
Asha Udupa5-Oct-05 1:16 
QuestionAfx_Dispatch_map and Automation Question Pin
wdhough5-Oct-05 0:53
wdhough5-Oct-05 0:53 
Hi,

I'm dealing with some automation for my code, and there is some syntax that is there that confuses me

I have code like this:

BEGIN_DISPATCH_MAP(MyDocument, CCmdTarget)
//{{AFX_DISPATCH_MAP(MyDocument)
DISP_FUNCTION(MyDocument, "SetVisible", SetVisible, VT_EMPTY, VTS_BOOL)
//}}AFX_DISPATCH_MAP
DISP_FUNCTION(MyDocument, "SetInvisible", SetInvisible, VT_EMPTY, VTS_BOOL)
END_DISPATCH_MAP()


The part i dont understand is why the AFX_DISPATH_MAP line is commented out? And why all code between the AFX_DISPATH_MAP lines is a different colour (grayed out in VS2003). This functions must still work as they do in fact work, but what would the differrence be between the SetVisible and SetInvisible method calls. This style of commenting out the AFX_DISPATH_MAP lines is present in sample code at MSDN, but i cannot find an explanation for it? In the example above, what in fact is the difference between the two differing lines referring to dispatch functions? How do they behave differently, if at all, etc

Many thanks


Will

AnswerRe: Afx_Dispatch_map and Automation Question Pin
Jozef Bozek5-Oct-05 3:34
Jozef Bozek5-Oct-05 3:34 
QuestionNumber of timers Pin
nripun5-Oct-05 0:33
nripun5-Oct-05 0:33 
AnswerRe: Number of timers Pin
Marc Soleda5-Oct-05 0:56
Marc Soleda5-Oct-05 0:56 
AnswerRe: Number of timers Pin
Trollslayer5-Oct-05 1:27
mentorTrollslayer5-Oct-05 1:27 
AnswerRe: Number of timers Pin
vikas amin5-Oct-05 3:25
vikas amin5-Oct-05 3:25 
AnswerRe: Number of timers Pin
David Crow5-Oct-05 4:05
David Crow5-Oct-05 4:05 
AnswerRe: Number of timers Pin
Bob Stanneveld5-Oct-05 6:24
Bob Stanneveld5-Oct-05 6:24 
Questionwhat do CreateEx exactly mean Pin
vikas amin5-Oct-05 0:09
vikas amin5-Oct-05 0:09 
AnswerRe: what do CreateEx exactly mean Pin
sunit55-Oct-05 0:48
sunit55-Oct-05 0:48 
AnswerRe: what do CreateEx exactly mean Pin
vamshin5-Oct-05 0:52
sussvamshin5-Oct-05 0:52 
AnswerRe: what do CreateEx exactly mean Pin
sunit55-Oct-05 2:10
sunit55-Oct-05 2:10 
GeneralRe: what do CreateEx exactly mean Pin
vikas amin5-Oct-05 3:42
vikas amin5-Oct-05 3:42 
QuestionHow to hide mouse globally ? Pin
Amarelia5-Oct-05 0:00
Amarelia5-Oct-05 0:00 
AnswerRe: How to hide mouse globally ? Pin
Sebastian Pipping5-Oct-05 23:59
Sebastian Pipping5-Oct-05 23:59 
Questionstream io using VC++, normal or bug? Pin
WernerPos4-Oct-05 23:49
WernerPos4-Oct-05 23:49 
AnswerRe: stream io using VC++, normal or bug? Pin
WernerPos5-Oct-05 0:05
WernerPos5-Oct-05 0:05 
QuestionCSIDL for RECYCLER Pin
Chintoo7234-Oct-05 22:40
Chintoo7234-Oct-05 22: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.