Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Not bug. Parent class trick.

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
accord Posted - Apr 13 2007 : 5:11:10 PM
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

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