Whole Tomato Software Support Forum
Whole Tomato Software Support Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Visual Assist X - Frequently Asked Questions
 Troubleshooting
 How do I use VA's "StdAfx.h" file?
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

feline
Moderator

United Kingdom
10942 Posts

Posted - Feb 26 2007 :  2:48:37 PM  Show Profile
Normally you never need to look at, or edit, Visual Assist X's StdAfx.h file.

This file is used to help VA's parser with difficult code, and can be used to work around odd effects or language extensions. A good example is the new "keywords" for Signals and Slots in Qt, where a couple of new #define's are added to this file. Alternatively we ask some people to modify their StdAfx.h files to work around a bug or limitation in Visual Assist X's parser.

After you finish editing the file make sure it still ends with a blank line.


If you are using Visual Assist X build 1548 or later then copy the default file:

C:\Program Files\Visual Assist X\Misc\StdAfx.h

and place it into the user specific Misc directory. Under Windows 2000 and Windows XP make the file:
C:\Documents and Settings\<USERNAME>\Application Data\VisualAssist\Misc\StdAfx.h

Under Windows Vista make the file:
C:\Users\<USERNAME>\AppData\Roaming\VisualAssist\Misc\StdAfx.h

Now add your new entries to the bottom of this file. After modifying this file you need to rebuild the VA symbol database for the changes to take effect:

VA Options -> Performance -> General -> Rebuild symbol databases

Visual Assist X's installer does not know about this user specific file, and it never updates it, so you no longer have to worry about loosing your changes when installing a new build of Visual Assist X.

Visual Assist X checks for this user specific file. If this file is found then it is used, otherwise Visual Assist X uses the default file.

You will need to "diff" your local file with the default version occasionally, to make sure that you are not missing any new entries that have been shipped with a new build of Visual Assist X.



If you are using Visual Assist X build 1544 or earlier then simply add your new entries to the bottom of the file:

C:\Program Files\Visual Assist X\Misc\StdAfx.h

After modifying this file you need to rebuild the VA symbol database for the changes to take effect:

VA Options -> Performance -> General -> Rebuild symbol databases

Also, when you install a new build of VA it will install the latest version of Visual Assist X's StdAfx.h file, which will overwrite your changes. So long as you reapply your changes before loading the IDE then the rebuild that the installer triggers will also pick up your changes.

Edited by - feline on Aug 04 2009 1:06:19 PM
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
Whole Tomato Software Support Forum © 2010 Whole Tomato Software, Inc Go To Top Of Page
Snitz Forums 2000