Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Create Visual Studio Win32 Project Programmatically

Create Visual Studio Win32 Project Programmatically

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiowpf
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iddqd515
    wrote on last edited by
    #1

    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. :(

    P 1 Reply Last reply
    0
    • I iddqd515

      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. :(

      P Offline
      P Offline
      Perspx
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups