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
 Not bug. Parent class trick.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 13 2007 :  5:11:10 PM  Show Profile  Reply with Quote
I'm usually writing bug reports and feature requests to this forum.

Now, I would like to share a little good news, a great feature that can be used for a trick.

I'm working with a large code base, that creating a cParent typedef automatically for all class, defining it's parent class.
This cParent is defined by a trick based on the order of header compiling. It is great, because working on VS and GCC also.

But VAX is parsing headers in a different order (sequentally, and not recursively, like compiler does). I have explored that VAX understands __super (MS specific stuff), which is recognised as a parent class.

So, I put this line into VAX's stdafx.h

#define cParent __super

...and VAX now understands our cParent typedef (so VAX is great )
So we have a portabe (not MS specific) cParent AND VAX can understand it also. So goto, find references, etc. working now.

For example:
cParent::Update(); // <-- VAX knows what Update is

I hope may helped someone who faced to the same problem

Edited by - accord on Apr 14 2007 07:57:55 AM
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000