Click here to Skip to main content
15,894,410 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what is the difference of “class instance” and “object”? Pin
Subrat 470826624-Oct-08 22:56
Subrat 470826624-Oct-08 22:56 
GeneralRe: what is the difference of “class instance” and “object”? Pin
WangZHua25-Oct-08 0:54
WangZHua25-Oct-08 0:54 
GeneralRe: what is the difference of “class instance” and “object”? Pin
Bram van Kampen25-Oct-08 16:51
Bram van Kampen25-Oct-08 16:51 
AnswerRe: what is the difference of “class instance” and “object”? Pin
CPallini25-Oct-08 0:24
mveCPallini25-Oct-08 0:24 
QuestionFinding LAN Addresses and Names Pin
Bram van Kampen24-Oct-08 14:58
Bram van Kampen24-Oct-08 14:58 
QuestionRe: Finding LAN Addresses and Names Pin
David Crow24-Oct-08 16:10
David Crow24-Oct-08 16:10 
AnswerRe: Finding LAN Addresses and Names Pin
Bram van Kampen25-Oct-08 16:13
Bram van Kampen25-Oct-08 16:13 
QuestionMessage Maps and SDI Pin
BobInNJ24-Oct-08 11:06
BobInNJ24-Oct-08 11:06 
I typed in an example from the book "MFC Programming from the Ground Up", Second Edition. This example is the first example that shows an SDI application. On of the classes defined in the application is CSampleDoc which is derived from CDocument. They specify the following message map:

<br />
// This is the document's message map.<br />
BEGIN_MESSGAE_MAP( CSampleDoc, CDocument )<br />
	ON_COMMAND( IDM_UNDO, OnUndo )<br />
	ON_COMMAND( IDM_RESET, OnReset )<br />
	ON_COMMAND( IDM_HELP, OnHelp )<br />
END_MESSAGE_MAP()<br />


However, it does not compile and the error message from the compiler is that CDocument is an abstract class. I check the documentation and CDocument is an abstract class. However, I do not understand why this is a problem? Also, is it not normal when writing an SDI application to have a message map for the class derived from CDocument to handle Menus?

Thanks
Bob
AnswerRe: Message Maps and SDI Pin
BobInNJ24-Oct-08 11:30
BobInNJ24-Oct-08 11:30 
GeneralRe: Message Maps and SDI Pin
Mark Salsbery24-Oct-08 12:10
Mark Salsbery24-Oct-08 12:10 
GeneralRe: Message Maps and SDI Pin
CPallini24-Oct-08 23:58
mveCPallini24-Oct-08 23:58 
QuestionC++ Profiling... Pin
Drew Stainton24-Oct-08 8:33
Drew Stainton24-Oct-08 8:33 
AnswerRe: C++ Profiling... Pin
David Crow24-Oct-08 9:52
David Crow24-Oct-08 9:52 
GeneralRe: C++ Profiling... Pin
Drew Stainton24-Oct-08 9:59
Drew Stainton24-Oct-08 9:59 
GeneralRe: C++ Profiling... Pin
David Crow24-Oct-08 10:05
David Crow24-Oct-08 10:05 
GeneralRe: C++ Profiling... Pin
Drew Stainton24-Oct-08 12:25
Drew Stainton24-Oct-08 12:25 
AnswerRe: C++ Profiling... Pin
Joe Woodbury24-Oct-08 12:14
professionalJoe Woodbury24-Oct-08 12:14 
GeneralRe: C++ Profiling... Pin
Drew Stainton24-Oct-08 12:26
Drew Stainton24-Oct-08 12:26 
GeneralRe: C++ Profiling... Pin
Cedric Moonen24-Oct-08 21:46
Cedric Moonen24-Oct-08 21:46 
GeneralRe: C++ Profiling... Pin
Drew Stainton25-Oct-08 5:19
Drew Stainton25-Oct-08 5:19 
QuestionDWM Desktop Windows Manager Pin
Sarriss24-Oct-08 5:47
Sarriss24-Oct-08 5:47 
AnswerRe: DWM Desktop Windows Manager Pin
Michael Dunn25-Oct-08 20:07
sitebuilderMichael Dunn25-Oct-08 20:07 
GeneralRe: DWM Desktop Windows Manager Pin
Sarriss26-Oct-08 6:50
Sarriss26-Oct-08 6:50 
QuestionCListCtrl such problem under windows XP Pin
fantasy121524-Oct-08 5:46
fantasy121524-Oct-08 5:46 
QuestionRe: CListCtrl such problem under windows XP Pin
David Crow24-Oct-08 7:00
David Crow24-Oct-08 7:00 

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.