MFC libary makefile
-
Newer versions of Visual Studio are installed without a makefile for the MFC library. As I want to change some inner parts of MFC I need to compile the library. ...but without a makefile (or solution file) this is not possible. Anybody out there which has got a working makefile for newer Visual Studios?
Regards, jung-kreidler
-
Newer versions of Visual Studio are installed without a makefile for the MFC library. As I want to change some inner parts of MFC I need to compile the library. ...but without a makefile (or solution file) this is not possible. Anybody out there which has got a working makefile for newer Visual Studios?
Regards, jung-kreidler
jung-kreidler wrote:
As I want to change some inner parts of MFC I need to compile the library.
Is this something you've (had) done before?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
Newer versions of Visual Studio are installed without a makefile for the MFC library. As I want to change some inner parts of MFC I need to compile the library. ...but without a makefile (or solution file) this is not possible. Anybody out there which has got a working makefile for newer Visual Studios?
Regards, jung-kreidler
-
Newer versions of Visual Studio are installed without a makefile for the MFC library. As I want to change some inner parts of MFC I need to compile the library. ...but without a makefile (or solution file) this is not possible. Anybody out there which has got a working makefile for newer Visual Studios?
Regards, jung-kreidler
Hi, Note that I have not used MFC since ~2013 but I can tell you that you can simply copy the MAK files from the VS2008 installation folder into your VS2010-VS2012 source folder and make a few changes. I have never attempted for VS2013 and above. I believe the last version that supported recompile of the MFC framework was VC2008 with 'nmake /f atlmfc.mak MFC' from commandline. Beginning with version MSVC2010 the MAK files were removed and recompile of the library became completely unsupported. Best Wishes, -David Delaune
-
jung-kreidler wrote:
As I want to change some inner parts of MFC I need to compile the library.
Is this something you've (had) done before?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
Yes, some years ago with an older version of MFC as there was a bug inside... Thanks for the response.
-
Don't, it could lead to all sorts of problems. A much better idea is to add your changes by subclassing the classes that you need to behave differently.
The reason for trying to get the hands on the MFC source are necessary changes (public vs. protected...) in the feature pack. Subclassing it not possible as the corresponding classes are already subclassed by the MFC feature pack itself. So, there's no access to the inner parts. Thanks for the response!
-
Newer versions of Visual Studio are installed without a makefile for the MFC library. As I want to change some inner parts of MFC I need to compile the library. ...but without a makefile (or solution file) this is not possible. Anybody out there which has got a working makefile for newer Visual Studios?
Regards, jung-kreidler
Thank you all for answering. I did the VS2008 makefile way. There were a lot of new afx...cpp files to add. It did compile (and yes, it worked fine at a first glance) and I tried to go further into the replacement of some feature pack subclassed windows. Finally I've stopped as there were too many changes necessary, which might cause side effects. Just wanted to get the beautiful MDI tear off feature of newer VS. :sigh: