Click here to Skip to main content

C / C++ / MFC

   

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
GeneralRe: Difference between MFC and windows form application PinmvpRajesh R Subramanian20:33 2 Dec '08  
GeneralRe: Difference between MFC and windows form application Pinmemberfrankis7820:50 2 Dec '08  
AnswerRe: Difference between MFC and windows form application Pinmvpled mike8:44 2 Dec '08  
AnswerRe: Difference between MFC and windows form application PinmemberAlan Balkany4:46 3 Dec '08  
QuestionCompiler error C2440 when converting from VC++ 6.0 to VS .NET 2003 PinmemberCarolLamoreaux8:02 2 Dec '08  
AnswerRe: Compiler error C2440 when converting from VC++ 6.0 to VS .NET 2003 PinmemberStuart Dootson8:30 2 Dec '08  
GeneralRe: Compiler error C2440 when converting from VC++ 6.0 to VS .NET 2003 [modified] PinmemberCarolLamoreaux8:48 2 Dec '08  
I tried changing the return value to void and I get a different error:
d:\utilities\FlightReport\FlightReport\FlightReportDoc.h(72) : error C2555: 'CFlightReportDoc::OnNewDocument': overriding virtual function return type differs and is not covariant from 'CDocument::OnNewDocument'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxwin.h(4831) : see declaration of 'CDocument::OnNewDocument'

 
All the help I looked up on overriding OnNewDocument matches with my code. I am not sure what to do now. I am new to this, so any help would be appreciated.
 

***UPDATE***
I took out the ON_COMMAND line and everything seems fine now. Smile | :)
 
modified on Tuesday, December 2, 2008 3:06 PM

GeneralRe: Compiler error C2440 when converting from VC++ 6.0 to VS .NET 2003 PinmemberStuart Dootson20:53 2 Dec '08  
Questiontext wrapping for a custom ctreectrl (mfc) Pinmemberkitkat120128:01 2 Dec '08  
AnswerRe: text wrapping for a custom ctreectrl (mfc) PinmemberCode-o-mat8:09 2 Dec '08  
GeneralRe: text wrapping for a custom ctreectrl (mfc) Pinmemberkitkat120128:30 2 Dec '08  
GeneralRe: text wrapping for a custom ctreectrl (mfc) PinmemberCode-o-mat8:55 2 Dec '08  
GeneralRe: text wrapping for a custom ctreectrl (mfc) Pinmemberkitkat1201210:51 2 Dec '08  
QuestionPlease consider the following C Program PinmemberBobInNJ7:42 2 Dec '08  
AnswerRe: Please consider the following C Program Pinmvptoxcct7:51 2 Dec '08  
AnswerRe: Please consider the following C Program PinmemberCode-o-mat7:55 2 Dec '08  
GeneralRe: Please consider the following C Program Pinmvptoxcct8:05 2 Dec '08  
GeneralRe: Please consider the following C Program PinmemberCode-o-mat8:17 2 Dec '08  
GeneralRe: Please consider the following C Program Pinmvptoxcct8:19 2 Dec '08  
GeneralRe: Please consider the following C Program PinmvpCPallini9:22 2 Dec '08  
GeneralRe: Please consider the following C Program Pinmvptoxcct9:25 2 Dec '08  
GeneralRe: Please consider the following C Program PinmvpCPallini9:29 2 Dec '08  
AnswerRe: Please consider the following C Program PinmvpDavidCrow8:04 2 Dec '08  
AnswerRe: Please consider the following C Program PinmvpCPallini9:08 2 Dec '08  
AnswerRe: Please consider the following C Program PinmemberTimothy Baldwin12:23 2 Dec '08  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.5.120604.1 | Last Updated 4 Jun 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid