Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC libary makefile

MFC libary makefile

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studioquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jung kreidler
    wrote on last edited by
    #1

    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

    D L J 4 Replies Last reply
    0
    • J 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

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      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

      J 1 Reply Last reply
      0
      • J 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

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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.

        J 1 Reply Last reply
        0
        • J 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

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • D David Crow

            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

            J Offline
            J Offline
            jung kreidler
            wrote on last edited by
            #5

            Yes, some years ago with an older version of MFC as there was a bug inside... Thanks for the response.

            1 Reply Last reply
            0
            • L Lost User

              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.

              J Offline
              J Offline
              jung kreidler
              wrote on last edited by
              #6

              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!

              1 Reply Last reply
              0
              • J 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

                J Offline
                J Offline
                jung kreidler
                wrote on last edited by
                #7

                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:

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups