Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionReferenced namespace in another project not linking Pin
Klempie12-Sep-06 1:31
Klempie12-Sep-06 1:31 
AnswerRe: Referenced namespace in another project not linking Pin
Cedric Moonen12-Sep-06 2:15
Cedric Moonen12-Sep-06 2:15 
GeneralRe: Referenced namespace in another project not linking Pin
Klempie12-Sep-06 2:27
Klempie12-Sep-06 2:27 
GeneralRe: Referenced namespace in another project not linking Pin
Cedric Moonen12-Sep-06 2:31
Cedric Moonen12-Sep-06 2:31 
GeneralRe: Referenced namespace in another project not linking Pin
Klempie12-Sep-06 2:43
Klempie12-Sep-06 2:43 
QuestionCan MIDL marshall STL types like vector ? Pin
Mr.Brainley12-Sep-06 1:20
Mr.Brainley12-Sep-06 1:20 
Questionwhy should we always use "CALLBACK" and "WINAPI" these words Pin
bloodwinner12-Sep-06 0:56
bloodwinner12-Sep-06 0:56 
AnswerRe: why should we always use "CALLBACK" and "WINAPI" these words Pin
Steve S12-Sep-06 3:17
Steve S12-Sep-06 3:17 
Typically, CALLBACK and WINAPI will determine the calling convention (__stdcall, __thiscall, __cdecl etc).

The functions do look similar, and they are performing similar tasks. A WndProc (window procedure) is designed to process specific messages passed to the window. If there are messages it does not wish to handle, then it can/should pass them on to the system default handler.
Similarly, a DlgProc will process messages passed to the dialog box. Again, if there are messages it does not wish to handle, it can/should pass them on to the default dialog box message handler.

That's one of the differences between them, and is why you can't really combine them into a single function.

In any event, having separate functions allows you to put behaviour specific to one window class into that procedure.

Steve S
Developer for hire

AnswerRe: why should we always use "CALLBACK" and "WINAPI" these words Pin
David Crow12-Sep-06 7:22
David Crow12-Sep-06 7:22 
QuestionHow to make an exe Pin
vc++_fragrance12-Sep-06 0:49
vc++_fragrance12-Sep-06 0:49 
AnswerRe: How to make an exe Pin
Cedric Moonen12-Sep-06 0:53
Cedric Moonen12-Sep-06 0:53 
GeneralRe: How to make an exe Pin
vc++_fragrance12-Sep-06 1:02
vc++_fragrance12-Sep-06 1:02 
GeneralRe: How to make an exe Pin
Hamid_RT12-Sep-06 1:28
Hamid_RT12-Sep-06 1:28 
AnswerRe: How to make an exe Pin
prasad_som12-Sep-06 0:55
prasad_som12-Sep-06 0:55 
GeneralRe: How to make an exe Pin
vc++_fragrance12-Sep-06 1:05
vc++_fragrance12-Sep-06 1:05 
GeneralRe: How to make an exe Pin
prasad_som12-Sep-06 1:40
prasad_som12-Sep-06 1:40 
GeneralRe: How to make an exe Pin
vc++_fragrance13-Sep-06 1:44
vc++_fragrance13-Sep-06 1:44 
GeneralRe: How to make an exe Pin
prasad_som13-Sep-06 1:53
prasad_som13-Sep-06 1:53 
GeneralRe: How to make an exe Pin
vc++_fragrance13-Sep-06 2:07
vc++_fragrance13-Sep-06 2:07 
AnswerRe: How to make an exe Pin
Nibu babu thomas12-Sep-06 1:04
Nibu babu thomas12-Sep-06 1:04 
GeneralRe: How to make an exe Pin
vc++_fragrance12-Sep-06 1:16
vc++_fragrance12-Sep-06 1:16 
GeneralRe: How to make an exe Pin
Nibu babu thomas12-Sep-06 1:19
Nibu babu thomas12-Sep-06 1:19 
GeneralRe: How to make an exe Pin
vc++_fragrance12-Sep-06 1:20
vc++_fragrance12-Sep-06 1:20 
GeneralRe: How to make an exe Pin
Hamid_RT12-Sep-06 1:31
Hamid_RT12-Sep-06 1:31 
AnswerRe: How to make an exe Pin
toxcct12-Sep-06 1:18
toxcct12-Sep-06 1:18 

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.