Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Custom Directories and environment variables
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mjv
Junior Member

16 Posts

Posted - Mar 17 2004 :  11:02:40 AM  Show Profile
I'm using VC6 and support multiple versions or releases of our software. In doing so my root development drive location changes to find headers and things. The VAX documentation on directories shows a bitmap with what appears to be enviroment variables. I'm curious does VAX support this for both include and source paths. And are there any limitations?

For example I would have a devroot environment variable:

set devroot=c:\\dev\\Release1

I would launch msdev with that environment variable (and others) set.

Then in the VAX options dialog can I specify a bunch of includes in the C/C++ Custom includes as such:

$(devroot)\\thirdparty\\include
$(devroot)\\common\\include
$(devroot)\\product\\include

And will this work for source directories as well?

Thanks

support
Whole Tomato Software

5566 Posts

Posted - Mar 17 2004 :  2:10:52 PM  Show Profile
VA X is reasonably good about respecting environment variables, particularly in VC++ 6.0 and VS.NET 2003. (VS.NET 2002 has a bug which prevents us from resolving a file in a project if the file name includes an env variable.)

Can we assume you use $(env) in the IDE options dialog? VA X will read those values. You might not need to change Platform to Custom.

http://www.wholetomato.com/x/products/features/directories.html?more=yes

Try your example. Switch Platform to Custom only if necessary and set both Stable Include and Library Source files in our options dialog.

Create a simple project that includes a foo.h from our "stable" include files, eg MFC, and from your project headers (more likely the case for you.) Click on the #include(s) and you see the full path(s) in our Definition field. Change devroot and reopen your project. Check the Definition field.

If stable include files change, ie a different MFC for each revision of your application, press Rebuild on our Performance tab and restart your IDE to force VA X to reparse the stable includes. They are not normally reparsed otherwise.

Whole Tomato Software, Inc.

Edited by - support on Mar 17 2004 2:11:24 PM
Go to Top of Page

mjv
Junior Member

16 Posts

Posted - Mar 17 2004 :  4:05:30 PM  Show Profile
I currently rely on using msdev with the /useenv switch. This pulls in the INCLUDE, LIB, SOURCE, and PATH environment variables as seen on the msdev's Options Directories tab. I haven't been able to set any environment variables there using $(env) syntax.

I'll try your excercise.

Thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000