Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Excluding standard directories from VA X

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 - Dec 12 2006 : 4:40:58 PM
I'm really bothered by the MFC symbols cluttering the suggestion listboxes as most MFC functions have the same names as their win32 counterparts. However, I don't want to disable MFC in visual studio altogether by removing the MFC include directory from the list of standard directories, I just want to avoid VA X from parsing these files. Is this possible?
16   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 01 2007 : 11:58:57 AM
gee thanks! *throws a cushion at bugfix*
bugfix Posted - Feb 01 2007 : 02:04:27 AM
heh, lame excuse:P

for those interested: http://www.quickfileupload.com/959607
use at your own risk!

if something goes wrong you can always blame feline though:))))
feline Posted - Jan 31 2007 : 5:51:40 PM
Now I just need to flag all of your bug reports with "he is running a custom build of VA he created himself", the perfect excuse when we cannot reproduce the problem!
bugfix Posted - Jan 31 2007 : 5:46:02 PM
from time to time i get some mfc samples from codeproject. now when i switch back to my real (wtl) projects, mfc types always take precedence over wtl or atl types when doing alt-g.
i simply got fed up of vax->options->rebuilding database, close ide, start ide, reload project. another thing i never use are managed types. didnt try to filter those dlls yet but i guess it will work too w/ my method.
all in all i wanted full control over what is put into va db and what not w/o fiddling w/ options and stuff each time:)
i can even easily extend this to get regexps e.g. from registry, this is a pretty universal method. it wasn't even that hard to do if you know how to:)
you tweak the ide and i tweak va:P

static LPCSTR g_filterList[] = 
{
    ".*\\\\\\\\afx.*\\\\.((h)|(inl))$",       // all mfc headers and inlines
    ".*\\\\\\\\mfc\\\\\\\\.*",                  // all other mfc stuff
    0
};
<snip>
    LPCSTR *filter = g_filterList;
    while(*filter)
    {
        CAtlRegExp<CAtlRECharTraitsA> reFilter;
        if(reFilter.Parse(*filter, FALSE) == REPARSE_ERROR_OK)
        {
            CAtlREMatchContext<CAtlRECharTraitsA> mcFilter;
            if(reFilter.Match(lpFileName, &mcFilter))
                return INVALID_HANDLE_VALUE;
        }
        filter++;
    }
<snip>
sean Posted - Jan 31 2007 : 5:24:06 PM
You previously wrote that you modified the stdafxva.h. Was that no longer sufficient or did you do this to prevent the installer undoing your change?
bugfix Posted - Jan 31 2007 : 4:28:34 PM
mail sent.

honestly i have no idea. i ve deleted the directory long ago and replaced it w/ an empty file:)
feline Posted - Jan 31 2007 : 4:12:19 PM
If you are willing to share this I suspect a few forum users would be very interested in using it themselves.

The file history, I was looking into that a few days ago, only one history file per code file should be kept, and they should be deleted when the IDE is closed. Are you still getting a large number of files building up?

If so are you using source control that is integrated with the IDE?
bugfix Posted - Jan 31 2007 : 3:13:08 PM
the problem is that ms has put atl and mfc headers in same directory and i didnt want to touch them. another thing i can control now is creation of file history that vax keeps.
source is for sale:)
if youre interested i can mail src to you.
feline Posted - Jan 31 2007 : 2:56:26 PM
I am impressed!

I would have thought it would be "easier" to just sort out the configuration, but I do like this solution, it is very complete and very technically appealing
bugfix Posted - Jan 31 2007 : 2:30:42 PM
my vax is finally mfc free:) wrote a dll that hooks createfile, checks if call is coming from vax then checks path if its a mfc file using regexp and returns INVALID_HANDLE_VALUE.
beat that:P
feline Posted - Dec 14 2006 : 10:36:57 AM
See here for information on VA's directories options:

http://www.wholetomato.com/products/features/directories.asp

The custom list in VA is there for people who need something "odd", and normally we recommend people just setup the IDE correctly. This is a good example of when you will want something "odd"
.oisyn Posted - Dec 14 2006 : 05:34:30 AM
quote:
changing VA's directory list to custom

Is that a setting? Wow, I thought it was a selection dropdown just like the dropdown next to it, and just like in visual studio's own options dialog. Maybe it should be more clear that VA X's behaviour is different from that of VS.
feline Posted - Dec 13 2006 : 12:24:03 PM
I suspect that you will need to edit StdAfxVa.h as well as changing VA's directory list to custom, since the two header files in Misc should be parsed regardless.

Remember that when you install a new build of VA the installer ships the current default versions of these two header files, so it is a good idea to back up your modified files.
bugfix Posted - Dec 13 2006 : 10:39:43 AM
nope that was all i did, works pretty well for me.
another thing you might consider is changing vax options->projects->c++ dirs to custom and adjust to your needs
in either case you need to rebuild sym db.
.oisyn Posted - Dec 13 2006 : 05:29:23 AM
Thansk for the tip, but should that really help? From the comments in StdAfx.h:

//Stdafxva.h directs Visual Assist to parse a core set of MS headers prior to
//parsing of headers on the Directories tab.

So whether the files are included or not in the StdAfxVa.h file, they will still be parsed when VA X scans the standard directories. Or did you remove it from the standard directories tab as well?
bugfix Posted - Dec 12 2006 : 5:32:43 PM
i removed every '#include <afx*.h|inl>' statement from StdAfxVa.h, helped me a lot:)

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