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 Static Library Project

MFC Static Library Project

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studioquestion
3 Posts 2 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.
  • Richard Andrew x64R Offline
    Richard Andrew x64R Offline
    Richard Andrew x64
    wrote on last edited by
    #1

    In VS 2017, is it possible to create a static library project that exports classes the same way an MFC Extension DLL does? I know I can create a regular static library project, but how would I make it possible to use MFC classes like CString inside that project?

    The difficult we do right away... ...the impossible takes slightly longer.

    V 1 Reply Last reply
    0
    • Richard Andrew x64R Richard Andrew x64

      In VS 2017, is it possible to create a static library project that exports classes the same way an MFC Extension DLL does? I know I can create a regular static library project, but how would I make it possible to use MFC classes like CString inside that project?

      The difficult we do right away... ...the impossible takes slightly longer.

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      Yes. it is possible. See also [mfc as static library: is option gone? - Developer Community](https://developercommunity.visualstudio.com/content/problem/108646/mfc-as-static-library-is-option-gone.html) What problems do you have exactly?

      Richard Andrew x64R 1 Reply Last reply
      0
      • V Victor Nijegorodov

        Yes. it is possible. See also [mfc as static library: is option gone? - Developer Community](https://developercommunity.visualstudio.com/content/problem/108646/mfc-as-static-library-is-option-gone.html) What problems do you have exactly?

        Richard Andrew x64R Offline
        Richard Andrew x64R Offline
        Richard Andrew x64
        wrote on last edited by
        #3

        Thank you for your response! I just figured out how to do it. First, create a static library project, then include all of the MFC headers in the stdafx.h file. Thanks again. :)

        The difficult we do right away... ...the impossible takes slightly longer.

        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