Click here to Skip to main content
15,913,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCompiler error C2440 when converting from VC++ 6.0 to VS .NET 2003 Pin
CarolLamoreaux2-Dec-08 8:02
CarolLamoreaux2-Dec-08 8:02 
AnswerRe: Compiler error C2440 when converting from VC++ 6.0 to VS .NET 2003 Pin
Stuart Dootson2-Dec-08 8:30
professionalStuart Dootson2-Dec-08 8:30 
GeneralRe: Compiler error C2440 when converting from VC++ 6.0 to VS .NET 2003 [modified] Pin
CarolLamoreaux2-Dec-08 8:48
CarolLamoreaux2-Dec-08 8:48 
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 Pin
Stuart Dootson2-Dec-08 20:53
professionalStuart Dootson2-Dec-08 20:53 
Questiontext wrapping for a custom ctreectrl (mfc) Pin
kitkat120122-Dec-08 8:01
kitkat120122-Dec-08 8:01 
AnswerRe: text wrapping for a custom ctreectrl (mfc) Pin
Code-o-mat2-Dec-08 8:09
Code-o-mat2-Dec-08 8:09 
GeneralRe: text wrapping for a custom ctreectrl (mfc) Pin
kitkat120122-Dec-08 8:30
kitkat120122-Dec-08 8:30 
GeneralRe: text wrapping for a custom ctreectrl (mfc) Pin
Code-o-mat2-Dec-08 8:55
Code-o-mat2-Dec-08 8:55 
GeneralRe: text wrapping for a custom ctreectrl (mfc) Pin
kitkat120122-Dec-08 10:51
kitkat120122-Dec-08 10:51 
QuestionRe: text wrapping for a custom ctreectrl (mfc) Pin
Singh, Yashpal10-Dec-13 20:17
Singh, Yashpal10-Dec-13 20:17 
QuestionPlease consider the following C Program Pin
BobInNJ2-Dec-08 7:42
BobInNJ2-Dec-08 7:42 
AnswerRe: Please consider the following C Program Pin
toxcct2-Dec-08 7:51
toxcct2-Dec-08 7:51 
AnswerRe: Please consider the following C Program Pin
Code-o-mat2-Dec-08 7:55
Code-o-mat2-Dec-08 7:55 
GeneralRe: Please consider the following C Program Pin
toxcct2-Dec-08 8:05
toxcct2-Dec-08 8:05 
GeneralRe: Please consider the following C Program Pin
Code-o-mat2-Dec-08 8:17
Code-o-mat2-Dec-08 8:17 
GeneralRe: Please consider the following C Program Pin
toxcct2-Dec-08 8:19
toxcct2-Dec-08 8:19 
GeneralRe: Please consider the following C Program Pin
CPallini2-Dec-08 9:22
mveCPallini2-Dec-08 9:22 
GeneralRe: Please consider the following C Program Pin
toxcct2-Dec-08 9:25
toxcct2-Dec-08 9:25 
GeneralRe: Please consider the following C Program Pin
CPallini2-Dec-08 9:29
mveCPallini2-Dec-08 9:29 
AnswerRe: Please consider the following C Program Pin
David Crow2-Dec-08 8:04
David Crow2-Dec-08 8:04 
AnswerRe: Please consider the following C Program Pin
CPallini2-Dec-08 9:08
mveCPallini2-Dec-08 9:08 
AnswerRe: Please consider the following C Program Pin
Timothy Baldwin2-Dec-08 12:23
Timothy Baldwin2-Dec-08 12:23 
Questionwhy it is so.. Pin
ramina sen2-Dec-08 4:37
ramina sen2-Dec-08 4:37 
AnswerRe: why it is so.. Pin
Code-o-mat2-Dec-08 4:53
Code-o-mat2-Dec-08 4:53 
GeneralRe: why it is so.. Pin
Maximilien2-Dec-08 5:11
Maximilien2-Dec-08 5:11 

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.