T
TomTom
Hi,
I just opened a small VC6 project and tried to compile. This project does
not have error in VC6, but VC7 now reports errors below..
c:\myproj\inc\mit\mitutil\blobfile.h(79): error C2555:
'CBlobFile::GetPosition': overriding virtual function return type differs
and is not covariant from 'CFile::GetPosition'
c:\myproj\inc\mit\mitutil\blobfile.h(79): error C2555:
'CBlobFile::GetLength': overriding virtual function return type differs and
is not covariant from 'CFile::GetLength'
Why do I get these errors? How can I avoid them?
I just opened a small VC6 project and tried to compile. This project does
not have error in VC6, but VC7 now reports errors below..
c:\myproj\inc\mit\mitutil\blobfile.h(79): error C2555:
'CBlobFile::GetPosition': overriding virtual function return type differs
and is not covariant from 'CFile::GetPosition'
c:\myproj\inc\mit\mitutil\blobfile.h(79): error C2555:
'CBlobFile::GetLength': overriding virtual function return type differs and
is not covariant from 'CFile::GetLength'
Why do I get these errors? How can I avoid them?