Creating Visual C++ Projects Programatically
-
I posted this in the VC++ forum and realized its probably better suited for this one... I'm trying to create a number of Visual Studio VC++ projects with the same settings and add various existing files to them. They're going to be native C++ Win32 projects. I have a bunch of existing .h and .cpp files that I want to bundle into VC++ projects and don't want to have to create new project, add items, change settings, etc manually every time. Unfortunately I don't see how to do this programatically for VC++. http://msdn2.microsoft.com/en-us/library/ms228767(VS.80).aspx includes details on how to create C# and VB.NET projects but not VC++ (although I don't really understand the OnConnection method in the examples). It seems VC++ uses a different project template structure than C# and VB.NET but that's all I know on that front. The file structure in the Visual Studio directory is certainly different. :confused: It seems like if I could just get past the hurdle of creating the project files I could get this working and add items/change project settings programmatically. Does anyone know if this is even possible with VC++ projects? Is it only doable for C# and VB.NET? :( I thought to create my own template type and use that but then I found out VC++ doesn't even support the 'Export template...' option in the file menu.