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