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. Changing a project to Statically Link

Changing a project to Statically Link

Scheduled Pinned Locked Moved C / C++ / MFC
c++
7 Posts 6 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.
  • M Offline
    M Offline
    Matt Gates
    wrote on last edited by
    #1

    Is the there a way to change a project which was originally created to dynamically link to statically link to the MFC. TIA Matt(Padawan Learner)

    C B 2 Replies Last reply
    0
    • M Matt Gates

      Is the there a way to change a project which was originally created to dynamically link to statically link to the MFC. TIA Matt(Padawan Learner)

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      change the selection in : Project / Settings / General / Microsoft Foundation Classes -c


      Image tools: ThumbNailer, Bobber, TIFFAssembler

      A 1 Reply Last reply
      0
      • M Matt Gates

        Is the there a way to change a project which was originally created to dynamically link to statically link to the MFC. TIA Matt(Padawan Learner)

        B Offline
        B Offline
        Brian Shifrin
        wrote on last edited by
        #3

        From DevStudio menu Project>Settings>General>Microsoft Moundation Classes: Use MFC in a static library

        M 1 Reply Last reply
        0
        • C Chris Losinger

          change the selection in : Project / Settings / General / Microsoft Foundation Classes -c


          Image tools: ThumbNailer, Bobber, TIFFAssembler

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          Thanks. I had been trolling around there but must have missed that option.

          R 1 Reply Last reply
          0
          • A Anonymous

            Thanks. I had been trolling around there but must have missed that option.

            R Offline
            R Offline
            Rob Groves
            wrote on last edited by
            #5

            You may also need to select project, settings, c++, code generation (from memory) and make sure that the C runtime is also statically linked. Cheers, Rob.

            M 1 Reply Last reply
            0
            • R Rob Groves

              You may also need to select project, settings, c++, code generation (from memory) and make sure that the C runtime is also statically linked. Cheers, Rob.

              M Offline
              M Offline
              Michael Dunn
              wrote on last edited by
              #6

              No need, when you change the MFC link type, it automagically changes the CRT link type as well. --Mike--    THERE IS NO     THERE IS NO    BUT THERE IS MAGIC PIXIE DUST  BUSINESS GENIE  CODE PROJECT :bob: Homepage | RightClick-Encrypt | 1ClickPicGrabber

              1 Reply Last reply
              0
              • B Brian Shifrin

                From DevStudio menu Project>Settings>General>Microsoft Moundation Classes: Use MFC in a static library

                M Offline
                M Offline
                Matt Gates
                wrote on last edited by
                #7

                Thanks all. I got it changed and running. Sometimes there are too many options and I get wrapped around the axle looking for the right one.:~ Matt ( Padawan Learner )

                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