Create Visual Studio Win32 Project Programmatically
-
I wanted to create a number of Visual Studio projects with the same settings and add various files to them. They're going to be native C++ Win32 projects. Unfortunately I don't see how to do this... http://msdn2.microsoft.com/en-us/library/ms228767(VS.80).aspx includes details on how to do this for C# and VB.NET projects but not VC++ (although I don't really understand the OnConnection method in the examples). As I understand it VC++ uses a different project template structure from those two languages. I couldn't find any more details beyond that though. I dug around in the Visual Studio directory for awhile looking for analogous files for C++ project templates but couldn't find anything but wizards (not the zips and other files I need). It seems like if I could just get past the hurdle of creating the project files I could get this working. Does anyone know if this is even possible? I was going to just create my own template type so I could easily find the directory and files but then I found out VC++ doesn't even support the 'Export template...' option in the file menu. :(
-
I wanted to create a number of Visual Studio projects with the same settings and add various files to them. They're going to be native C++ Win32 projects. Unfortunately I don't see how to do this... http://msdn2.microsoft.com/en-us/library/ms228767(VS.80).aspx includes details on how to do this for C# and VB.NET projects but not VC++ (although I don't really understand the OnConnection method in the examples). As I understand it VC++ uses a different project template structure from those two languages. I couldn't find any more details beyond that though. I dug around in the Visual Studio directory for awhile looking for analogous files for C++ project templates but couldn't find anything but wizards (not the zips and other files I need). It seems like if I could just get past the hurdle of creating the project files I could get this working. Does anyone know if this is even possible? I was going to just create my own template type so I could easily find the directory and files but then I found out VC++ doesn't even support the 'Export template...' option in the file menu. :(
I'm not sure I don't really use VS much (I find it much slower than other C/C++ compilers :sigh:) If you can't do it from VS, you could write an application to do this.. You could just have a basic dialog box with some settings in it, and then a number of template project files (just ordinary .txt files or something) which are copied to the chosen directory when all of the settings have been set.. This method would also allow for more flexibility.. Hope this helps! --PerspX
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates