Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: System Info Pin
Dudi Avramov8-Mar-05 21:25
Dudi Avramov8-Mar-05 21:25 
GeneralINTERESTING!!!!! Pin
kedar.dave8-Mar-05 20:00
kedar.dave8-Mar-05 20:00 
GeneralFromHandlePermanent returns NULL CWnd pointer Pin
RejiParathody8-Mar-05 19:34
sussRejiParathody8-Mar-05 19:34 
GeneralWMV<->DVD Conversion Pin
BIGsmallBIG8-Mar-05 19:32
sussBIGsmallBIG8-Mar-05 19:32 
QuestionWinsock Question ? Pin
covansys20008-Mar-05 18:17
covansys20008-Mar-05 18:17 
GeneralMigrating large VC++ 6.0 projects to .NET Pin
Serge Krynine8-Mar-05 16:13
Serge Krynine8-Mar-05 16:13 
GeneralRe: Migrating large VC++ 6.0 projects to .NET Pin
Christian Graus8-Mar-05 17:19
protectorChristian Graus8-Mar-05 17:19 
GeneralRe: Migrating large VC++ 6.0 projects to .NET Pin
Serge Krynine8-Mar-05 18:02
Serge Krynine8-Mar-05 18:02 
Hi Christian,

Considering changes to the compiler, I completely agree with your comment; but there’s more than just a compiler: changes in MFC between version 6 and version 7. Just a couple of them to give you an idea on the amount of work when migrating large MFC based projects from VC6 to VC7.

1. Changes in CFile class interface:

virtual DWORD CFile::GetLength( ) const; // MFC6 (Visual C++ 6.0)
virtual ULONGLONG CFile::GetLength( ) const; // MFC7 (.NET 2003)

so that compiling code like this:

CFile f;
DWORD dwLength = f.GetLength();

will now produce compiler warnings on loosing data; and certainly, this kind of warnings can’t be ignored. Add millions user-defined specialisations of the CFile class in a large MFC based project to complete the picture (actually, it is a good example of when inheritance bites and aggregations should be used instead);

2. Changes in CTime class: in the interface (similar to the 1.) and in size: size of objects of the CTime class is now 8 bytes, instead of 4 bytes; our software serialises objects of the CTime class through sockets; therefore the backward compatibility issue. The change in the CTime class breaks backward compatibility with the legacy systems that can’t be upgraded to run applications built under VC7 with MFC 7; even our non-legacy systems can’t be upgraded in one go, so this backward compatibility issue will exist for a transition period of time.

Also consider the backward compatibility requirement (support for both VC6 and VC7 for a transition period of time) so source code now looks like this:

CFile f;
#if _MFC_VER >= 0x0700 // represents MFC version 7 and later
ULONGLONG llLength = f.GetLength();
#else
DWORD dwLength = f.GetLength();
#endif

and requirements for unit, build, factory etc. testing for two versions - so you’ve got the picture…

Serge




GeneralRe: Migrating large VC++ 6.0 projects to .NET Pin
Christian Graus8-Mar-05 18:16
protectorChristian Graus8-Mar-05 18:16 
GeneralRe: Migrating large VC++ 6.0 projects to .NET Pin
Serge Krynine8-Mar-05 18:28
Serge Krynine8-Mar-05 18:28 
Generalwrap a dll into another dll Pin
ppp0018-Mar-05 15:29
ppp0018-Mar-05 15:29 
GeneralRe: wrap a dll into another dll Pin
Anonymous8-Mar-05 16:06
Anonymous8-Mar-05 16:06 
Generalbarcode on C lang Pin
france_philippines8-Mar-05 14:35
france_philippines8-Mar-05 14:35 
GeneralRe: barcode on C lang Pin
PJ Arends8-Mar-05 14:48
professionalPJ Arends8-Mar-05 14:48 
GeneralMFC7 COleVariant and CString classes Pin
Serge Krynine8-Mar-05 12:17
Serge Krynine8-Mar-05 12:17 
GeneralRe: MFC7 COleVariant and CString classes Pin
PJ Arends8-Mar-05 14:44
professionalPJ Arends8-Mar-05 14:44 
GeneralRe: MFC7 COleVariant and CString classes Pin
Serge Krynine8-Mar-05 15:37
Serge Krynine8-Mar-05 15:37 
GeneralRe: MFC7 COleVariant and CString classes Pin
PJ Arends8-Mar-05 19:36
professionalPJ Arends8-Mar-05 19:36 
GeneralWaitCursor and form disable Pin
Esquif8-Mar-05 12:14
Esquif8-Mar-05 12:14 
GeneralRe: WaitCursor and form disable Pin
Sujan Christo8-Mar-05 22:41
Sujan Christo8-Mar-05 22:41 
Generalusing dll Pin
pnpfriend8-Mar-05 12:09
pnpfriend8-Mar-05 12:09 
GeneralRe: using dll Pin
PJ Arends8-Mar-05 15:02
professionalPJ Arends8-Mar-05 15:02 
GeneralWatermarking Pin
Lampros Giampouras8-Mar-05 11:52
Lampros Giampouras8-Mar-05 11:52 
GeneralRe: Watermarking Pin
Christian Graus8-Mar-05 12:24
protectorChristian Graus8-Mar-05 12:24 
GeneralRe: Watermarking Pin
Lampros Giampouras10-Mar-05 1:44
Lampros Giampouras10-Mar-05 1:44 

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.