Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / March 2005

Tip: Looking for answers? Try searching our database.

Changing VC++ include path search during install

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gordon - 05 Mar 2005 06:45 GMT
Hi,
 I'd like to alter the default list of directories that VS.NET 2003
uses when building C++. I'd like to do this using a script or program.
Documentation on automation was promising (the DTE.Properties help) --
but notes that only the info listed on that page can be altered... and
it doesn't list the include path. What is the proper way to go about
this?

 In a bit more detail. One can add a directory to the default
multi-project list of include path searches in VS.NET by going to
Tools->Options->Projects->VC++ Directories and then selecting "Include
Files" and adding the directory. I'd like to do exactly this, but under
scriopt/program control.

 Burried in the registry are a list of the include paths
(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.1\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories)
but altering things there doesn't change anything when the environment
is restarted. I also looked in AppData directory and failed to find
anything obvious (a quick text search of the files there).

 At that point I hit upon the idea of using automation to do it. After
all, if I did that, perhaps I'd even survive the upgrade to 2005. Alas,
I can't find the entrypoint to alter that information. The above
referenced page from MSDN documentation doesn't menting the
projects->include files path.

 Guidence most appricated!

 Cheers,
   Gordon.
Gordon - 08 Mar 2005 22:27 GMT
Hi again,
 If this isn't the right place to ask, please let me know where i
should ask.

 Basically, the question is: how can I, using the installer or a
program, modify the include paths that are used by VC++? I want to
modify the list of include and library search directories that are
found in VS.NET->Tools->Options->Projects->VC++ Directories.

 Many thanks in advance!

 Cheers,
   Gordon.
SGreene - 09 Mar 2005 15:46 GMT
hi

have a look at the VCCLCompilerTool object.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcext/html/vxlr
fVCProjectEngineLibraryVCCLCompilerTool.asp


and at its property "FullIncludePath"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcext/html/vxlr
ffullincludepathproperty.asp


SGreene

> Hi again,
>   If this isn't the right place to ask, please let me know where i
[quoted text clipped - 9 lines]
>   Cheers,
>     Gordon.
Gordon - 09 Mar 2005 16:37 GMT
Hi,
 Thanks! You got the answer. The property you gave there has only
"get" acessors -- so it is read only, so it won't quite work.

 But at least I know where the data is stored on a per-user basis now.
The web page describing the dialog:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/v
xurfVCDirectoriesProjectsOptionsDialogBox.asp


 puts it in local settings. I just need to figure out how to make my
installer look for that file, if it finds it, modify it. Thanks! At
least I can see my way to doing what I need to do now!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.