Click here to Skip to main content
15,915,739 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to invoke the Perl Function from VC++ Console application Pin
f340492326-Oct-08 14:31
f340492326-Oct-08 14:31 
Questionwhat is the difference of “class instance” and “object”? Pin
WangZHua24-Oct-08 16:42
WangZHua24-Oct-08 16:42 
AnswerRe: what is the difference of “class instance” and “object”? Pin
David Crow24-Oct-08 16:46
David Crow24-Oct-08 16:46 
GeneralRe: what is the difference of “class instance” and “object”? Pin
WangZHua25-Oct-08 0:42
WangZHua25-Oct-08 0:42 
GeneralRe: what is the difference of “class instance” and “object”? Pin
Nemanja Trifunovic25-Oct-08 15:30
Nemanja Trifunovic25-Oct-08 15:30 
GeneralRe: what is the difference of “class instance” and “object”? Pin
David Crow27-Oct-08 2:48
David Crow27-Oct-08 2:48 
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 

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.