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. Programmatically set Visual C++ Directories for .NET

Programmatically set Visual C++ Directories for .NET

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpwindows-adminhelptutorial
5 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.
  • S Offline
    S Offline
    Scott Evans
    wrote on last edited by
    #1

    Hello... Was wondering if anyone knows how to programmatically set the Visual C++ paths for .NET. In the old days of VC6, you could update the registry settings in "HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Build System\Components\Platforms\Win32 (x86)\Directories" which worked just fine. However I could not locate this key for VC7, any help would be greatly appreciated. :-D - Scott

    P 1 Reply Last reply
    0
    • S Scott Evans

      Hello... Was wondering if anyone knows how to programmatically set the Visual C++ paths for .NET. In the old days of VC6, you could update the registry settings in "HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Build System\Components\Platforms\Win32 (x86)\Directories" which worked just fine. However I could not locate this key for VC7, any help would be greatly appreciated. :-D - Scott

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      HKLM\Software\Microsoft\VisualStudio\7.0\Vc\VC_OBJECTS_PLATFORM_INFO\Win32\Directories


      CPUA 0x5041 Sonork 100.11743 Chicken Little "So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies Within you lies the power for good - Use it!

      S 1 Reply Last reply
      0
      • P PJ Arends

        HKLM\Software\Microsoft\VisualStudio\7.0\Vc\VC_OBJECTS_PLATFORM_INFO\Win32\Directories


        CPUA 0x5041 Sonork 100.11743 Chicken Little "So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies Within you lies the power for good - Use it!

        S Offline
        S Offline
        Scott Evans
        wrote on last edited by
        #3

        Hi PJ, Thanks for the answer, however I have tried that already with no success, sorry I should have mentioned that. It seems that when you insert a path using the registry editor, lets say: Include Dirs - C:\My Company\My Code\Include; And open VisualStudio.NET and choose "Tools", "Options", "Projects", "VC++ Directories" and select Include Files, you will not see the path you just added. Additionally, if you add this path from within VisualStudio, you will not see the registry entry update either. It appears that this registry entry is not really used, or used for another purpose and there is an external file that VS.NET is using to store and read this information from. Any help in solving this mystery would be greatly appreciated :-D Cheers, Scott

        P 1 Reply Last reply
        0
        • S Scott Evans

          Hi PJ, Thanks for the answer, however I have tried that already with no success, sorry I should have mentioned that. It seems that when you insert a path using the registry editor, lets say: Include Dirs - C:\My Company\My Code\Include; And open VisualStudio.NET and choose "Tools", "Options", "Projects", "VC++ Directories" and select Include Files, you will not see the path you just added. Additionally, if you add this path from within VisualStudio, you will not see the registry entry update either. It appears that this registry entry is not really used, or used for another purpose and there is an external file that VS.NET is using to store and read this information from. Any help in solving this mystery would be greatly appreciated :-D Cheers, Scott

          P Offline
          P Offline
          PJ Arends
          wrote on last edited by
          #4

          Have a look at the file "VCComponents.dat" found in the folder "C:\Documents and settings\<your user name>\Local Settings\Application Data\Microsoft\Visual Studio\7.0\" I found that by entering a bogus name in one of the directory fields in vs7, and then doing a search for all files containing that bogus name. This was the file that came up.


          CPUA 0x5041 Sonork 100.11743 Chicken Little "So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies Within you lies the power for good - Use it!

          S 1 Reply Last reply
          0
          • P PJ Arends

            Have a look at the file "VCComponents.dat" found in the folder "C:\Documents and settings\<your user name>\Local Settings\Application Data\Microsoft\Visual Studio\7.0\" I found that by entering a bogus name in one of the directory fields in vs7, and then doing a search for all files containing that bogus name. This was the file that came up.


            CPUA 0x5041 Sonork 100.11743 Chicken Little "So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies Within you lies the power for good - Use it!

            S Offline
            S Offline
            Scott Evans
            wrote on last edited by
            #5

            :-D Thank you, that did the trick!

            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