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. Adding a project to existing workspace

Adding a project to existing workspace

Scheduled Pinned Locked Moved C / C++ / MFC
questionworkspace
2 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.
  • C Offline
    C Offline
    Coremn
    wrote on last edited by
    #1

    Hi I have created a new dialog project. Now I want to add that PROJECT into an exitsting project's workspace. I can do this but the dialog project outputs a .exe file. How do I change this to create a .lib file so I can link correctly?? ---

    P 1 Reply Last reply
    0
    • C Coremn

      Hi I have created a new dialog project. Now I want to add that PROJECT into an exitsting project's workspace. I can do this but the dialog project outputs a .exe file. How do I change this to create a .lib file so I can link correctly?? ---

      P Offline
      P Offline
      perlmunger
      wrote on last edited by
      #2

      It doesn't really work that way. You'll need to create a "Win32 Static Library" ( File | New... in Visual Studio ). Once you've done so, you'll have a library project to work with. When compiled it will build a .lib file. This project is where you'll have to create your dialog and related class. It is possible to move your existing .cpp and .h file for your dialog into a static library such as this, but doing so is a bit of a pain. You will probably have to copy resouce code (from the .rc file) to a .rc file in the static library project. Making all the connections then is a bit tedious. Once you do have this library built, you will have to change the project settings in the main project so that it knows where to find your new library. I hope this helps steer you in the right direction. Good luck. -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

      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