Where does VC++ save include path settings?
-
Somewhat of a trivia question - I'm setting up a new machine for development. I have project A, in project A's folder on my old machine - builds fine. I then install VC++, the SDK, and copy the entire folder to the new machine. It doesn't compile - missing include paths - tools -> options -> directories. I fix it. It doesn't link. Back to directories, add the lib folders I need. Happiness in dev land. My question has to do with where the directory paths are saved. There isn't anything in the project files that I can locate. I guess a follow up would be why not? I've seen this behavior on VS6, VS2008, Embedded Visual C++, so it's starting to be a theme.
Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
-
Somewhat of a trivia question - I'm setting up a new machine for development. I have project A, in project A's folder on my old machine - builds fine. I then install VC++, the SDK, and copy the entire folder to the new machine. It doesn't compile - missing include paths - tools -> options -> directories. I fix it. It doesn't link. Back to directories, add the lib folders I need. Happiness in dev land. My question has to do with where the directory paths are saved. There isn't anything in the project files that I can locate. I guess a follow up would be why not? I've seen this behavior on VS6, VS2008, Embedded Visual C++, so it's starting to be a theme.
Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
-
Envoronment vars, in the project, or in the options are where you want to look for all paths.
============================== Nothing to say.
Maybe I'm not being clear - I want to know PHYSICALLY where these settings are. I do not change the env values, and although I can see the settings in the project/options, they are not kept in the .dsp files, etc. If I do a clean install of Visual Studio and then open my project, the settings are lost.
Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
-
Maybe I'm not being clear - I want to know PHYSICALLY where these settings are. I do not change the env values, and although I can see the settings in the project/options, they are not kept in the .dsp files, etc. If I do a clean install of Visual Studio and then open my project, the settings are lost.
Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
-
Oh, I see. The dsp file will have project settings, the registry wil hold the ones for mthe Options dialog.
============================== Nothing to say.
Just for the record, and it's okay if you don't know why? Why are the path settings in the registry? What's the point? I guess that's rhetorical. I'm going to go over to the "Microsoft Forums social area" (song in background) to see if someone can shed some light as to the thought process.
Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
-
Just for the record, and it's okay if you don't know why? Why are the path settings in the registry? What's the point? I guess that's rhetorical. I'm going to go over to the "Microsoft Forums social area" (song in background) to see if someone can shed some light as to the thought process.
Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
charlieg wrote:
Just for the record, and it's okay if you don't know
Somewhere in HKLM / HKCU \SW\Microsoft\VisualStudio I would say. If you want to know for sure create a distinctive path and search the registry. As for why, it is because the ones set in VSs options are global paths that apply to all projects. Not only that, think of VS as the editor, not the compiler. The compiler is in the exes path in options. So you can specify any cl.exe you like, any linker too. It really is quite flexible. Perhaps you like VS 6 UI and VS 8 compiler. Then set VS 6 exe path to that of VS 8.
============================== Nothing to say.
-
charlieg wrote:
Just for the record, and it's okay if you don't know
Somewhere in HKLM / HKCU \SW\Microsoft\VisualStudio I would say. If you want to know for sure create a distinctive path and search the registry. As for why, it is because the ones set in VSs options are global paths that apply to all projects. Not only that, think of VS as the editor, not the compiler. The compiler is in the exes path in options. So you can specify any cl.exe you like, any linker too. It really is quite flexible. Perhaps you like VS 6 UI and VS 8 compiler. Then set VS 6 exe path to that of VS 8.
============================== Nothing to say.
"because the ones set in VSs options are global paths that apply to all projects." is the nugget - the lightbulb comes on!! Appreciate stating the obvious. But I have to say, that signature is annoying. :-D
Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
-
Somewhat of a trivia question - I'm setting up a new machine for development. I have project A, in project A's folder on my old machine - builds fine. I then install VC++, the SDK, and copy the entire folder to the new machine. It doesn't compile - missing include paths - tools -> options -> directories. I fix it. It doesn't link. Back to directories, add the lib folders I need. Happiness in dev land. My question has to do with where the directory paths are saved. There isn't anything in the project files that I can locate. I guess a follow up would be why not? I've seen this behavior on VS6, VS2008, Embedded Visual C++, so it's starting to be a theme.
Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
If you're using VS2008, you can export the Visual Studio IDE settings on the old machine to a file. Then import the settings on the new machine. These actually live in the CurrentSettings file found in your My Documents\Visual Studio 2008\Settings folder. The CurrentSettings file is an XML file so if you wanted to, you could use any decent text editor to locate the settings in the file. Hope this helps.
-
"because the ones set in VSs options are global paths that apply to all projects." is the nugget - the lightbulb comes on!! Appreciate stating the obvious. But I have to say, that signature is annoying. :-D
Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
-
charlieg wrote:
But I have to say, that signature is annoying. :-D
What, the 'Fat__Eric' or the 'Nothing to say' ? :)
============================== Nothing to say.
Nothing to say. It keeps grabbing my attention like it's part of the response, which I guess it is in a way. :)
Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
-
If you're using VS2008, you can export the Visual Studio IDE settings on the old machine to a file. Then import the settings on the new machine. These actually live in the CurrentSettings file found in your My Documents\Visual Studio 2008\Settings folder. The CurrentSettings file is an XML file so if you wanted to, you could use any decent text editor to locate the settings in the file. Hope this helps.
Sure does. I was looking for the "why" mostly. You think you remember everything on a hard drive, but some of the things I installed were 5 years ago. Plus, I'm building a document for new developers and s/w configuration.
Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759