Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1646: VA X doesn't understand all VS variables

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
.oisyn Posted - Aug 04 2008 : 07:35:32 AM
Some of my standard include directories in VS are defined with variables, such as
$(Xbox360InstallDir)include\\xbox

However, VA X doesn't understand this and parses the above string as
C:\\Documents and Settings\\<my user name>\\include\\xbox

In order to let VA X understand the directories, I either have to change the VS settings to not use any variables, or use custom platform settings in VA X itself and thus manually replicating all regular directories.

Another annoying thing is that I can't easily add custom directories for VA X. For example, the above Xbox 360 include dir is officially set for the Xbox 360 platform only. But switching platforms in VA X requires a restart of the IDE, which is pretty undoable if you develop for multiple platforms. So, again, I have to set it to custom, replicate all win32 settings, and add the Xbox 360 settings.
7   L A T E S T    R E P L I E S    (Newest First)
support Posted - Sep 13 2008 : 01:04:07 AM
case=3768 is implemented in build 1649
Krakken Posted - Aug 07 2008 : 12:13:08 AM
The environmental variable for the same directory is %XEDK%. (%XEDK%\\include\\xbox)
sean Posted - Aug 06 2008 : 6:43:28 PM
Is there any change in behavior if you use this instead:
%Xbox360InstallDir%include\\xbox
.oisyn Posted - Aug 06 2008 : 6:37:08 PM
quote:
Do you know if the value of the expression changes depending on your active configuration?

I wouldn't think so, it always evaluates to "c:\\program files\\microsoft xbox 360 sdk\\"
sean Posted - Aug 04 2008 : 1:14:38 PM
VA typically asks the IDE to evaluate expressions like $(Xbox360InstallDir).
Do you know if the value of the expression changes depending on your active configuration?

Rather than adding the xbox directory to the standard includes, you are better off modifying the Custom VA platform. You can do this directly in regedit (don't do this while the VA options dialog is displayed):
HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet8\\Custom

We currently have a feature request to support better paste handling in the directories list. case=3768
.oisyn Posted - Aug 04 2008 : 11:57:30 AM
quote:
Originally posted by feline

What type of variable is "Xbox360InstallDir" ?

I have no clue where it comes from. It's not an environment variable, that's for sure. It does show up in the list of macros whenever you try to edit a project option. It probably comes from the Xbox 360 addon.
quote:
Which IDE and OS are you using?
VS 2005, Windows XP-64
quote:
How / where are you using this path "$(Xbox360InstallDir)include\\xbox" ?

In the standard VC++ directories under Tools -> Options -> Projects and Solutions

quote:
How have you worked out that VA is turning that string into "C:\\Documents and Settings\\<my user name>\\include\\xbox" ?

By looking at the directories list under VA X options -> Projects -> C/C++ Directories.

quote:
Changing the platform, VA uses the directories in the platform list to build its symbol database. If you change the platform the symbol database needs to be rebuilt, which requires an IDE restart.

I understand the why, but it's very annoying when developing for multiple platforms. You can't expect developers to restart the IDE every time they want to test a product on a different platform, if they write crossplatform software.
I currently solved it by including the Xbox 360 include directory in the list of standard VC++ include directories for Win32. Obviously this is dangerous as a win32 project might be wrongly including a Xbox 360 header when it isn't supposed to. However, solving it in VA X requires me to copy the entire win32 list into the custom list and add the Xbox 360 directories, which is not an easy thing to do (as you can't copy/paste from that list in the VA X dialog, and you can't go to the VS options dialog with the VA X options dialog open). I'd like to have it include the standard directories from the VS options, while still be able to add extra directories as you please.
feline Posted - Aug 04 2008 : 09:14:15 AM
What type of variable is "Xbox360InstallDir" ?
Which IDE and OS are you using?
How / where are you using this path "$(Xbox360InstallDir)include\\xbox" ?

How have you worked out that VA is turning that string into "C:\\Documents and Settings\\<my user name>\\include\\xbox" ?

using VS2005 and VA 1646 I have added property sheet environment variables to my solution, and when I use these property sheet environment variables in:

Project properties -> C/C++ -> General -> Additional Include Directories

VA understands them correctly, and alt-g to files stored in these directories works correctly.


Changing the platform, VA uses the directories in the platform list to build its symbol database. If you change the platform the symbol database needs to be rebuilt, which requires an IDE restart.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000