There's no easy way to "convert" an application to a library. These are two different things. The only way is to create a new library project, and add to it the source files you want to include in your library. Of course if you want to bring functionalities that were present in the GUI classes (like in View or Document if you use a SDI application), that will require more work. But first, you need to understand what a library is and how it is used, because it seems you are a bit confused about it. What are you trying to achieve exactly ? Converting a full application into a library doesn't make sense at all.
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++