How Do I Automate the Visual C++ Environment from an MFC Application?
Home Page (Objects) | Overview | FAQ | Reference
You can automate Developer Studio (the Visual C++ environment) from an MFC application by creating an add-in or executable. The add-in would access the Developer Studio object model by using the Type libraries, whereas the executable would use the header files.