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
 Failed to process template class!
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

hrun
Junior Member

13 Posts

Posted - Jan 31 2004 :  8:26:58 PM  Show Profile
It cannot parse template class use a type parameter as base!

For example, the CWindowImpl from ATL. it's define is like

template <class T, class TBase /* = CWindow */, class TWinTraits /* = CControlWinTraits */>
class ATL_NO_VTABLE CWindowImpl : public CWindowImplBaseT< TBase, TWinTraits >

and

template <class TBase = CWindow, class TWinTraits = CControlWinTraits>
class ATL_NO_VTABLE CWindowImplBaseT : public CWindowImplRoot< TBase >

and

template <class TBase /* = CWindow */>
class ATL_NO_VTABLE CWindowImplRoot : public TBase, public CMessageMap

for my class

class CRealView
: public CWindowImpl< CRealView, CWindow >
{
}

visual assist donot treat member from CWindow as member of CRealView!

luceric
New Member

3 Posts

Posted - Apr 06 2005 :  6:01:01 PM  Show Profile
This is a major showstopper here!
Everything was going well until I realized VA cannot show me the members of my class which is derived from CWindowImpl.
VC++ dotNet 2003.

Enabling using Intellisense does work, but I've looked into VA because intellisense was failing with our collection classes.

The problem is autocompletion not working with member functions such as SetWindowPos. It will show the SDK version instead.

Edited by - luceric on Apr 06 2005 6:02:50 PM
Go to Top of Page

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Apr 07 2005 :  04:10:09 AM  Show Profile
VA support for templates is weak. I think WT have said they intend to improve it at some point, but it doesn't seem to be one of their top priorities.

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Apr 08 2005 :  12:37:03 AM  Show Profile
Or maybe it is just a hard problem.

Joe Pizzi
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 09 2005 :  5:17:17 PM  Show Profile
from the outside it looks like a hard problem, but that is just an educated guess.

case=201

zen is the art of being at one with the two'ness
Go to Top of Page

luceric
New Member

3 Posts

Posted - Apr 09 2005 :  5:26:17 PM  Show Profile
Are they working on improving the C++ template parsing? We need know to evaluate if and how many copies of Visual Assist we would buy.

Alternativly, is there a way we could 'help' Visual Assist, for example by giving it some sort of configuration file where we would define by hand classes it can't parse? We don't care if we have to take a few hours to define collection classes that everyone in the company uses.


Edited by - luceric on Apr 09 2005 5:27:40 PM
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Apr 09 2005 :  6:12:40 PM  Show Profile
Files to reproduce certain problems are always welcome.
If they do not cause you too much effort/work, you may mail them to [email protected] and please put the Topic ID (1356) into the mailbody. A short description of the bug/wrong behaviour would be nice...

You can also try to contact support for a longer evaluation-period, if you need some more time. Not promising anything, but with a reasonable explanation this may be possible...

The case-ID is quite 'old', so the devs are already struggling with this one for some time. Maybe your files may speed-up bugfixing.

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 13 2005 :  3:49:59 PM  Show Profile
quote:
Originally posted by luceric

Alternativly, is there a way we could 'help' Visual Assist, for example by giving it some sort of configuration file where we would define by hand classes it can't parse? We don't care if we have to take a few hours to define collection classes that everyone in the company uses.


if you look in:

C:\\Program Files\\Visual Assist X\\Misc

there should be a file called "StdafxVa.h"

from memory VA parses this file very early on. based on the comment line:

// VA needs a bit of help parsing some STD libs

this is used to help the parser make sense of some of the STL code. so it is possible by adding suitable definitions to this file you could give VA enough help to get good results in your specific case.

however i have never done this myself so i don't know how easy this will be.

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Apr 19 2005 :  1:23:58 PM  Show Profile
If you can create a tiny example to exhibit the problem, it would help us provide a workaround. As mentioned, we might coax VA X into reading alternate definitions that give you the info you want.

Send a zipped example via email to [email protected]
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