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
 No suggestions on macro including member call
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

FlintZA
New Member

South Africa
8 Posts

Posted - Nov 19 2008 :  04:10:55 AM  Show Profile  Reply with Quote
We use a fairly typical templated singleton pattern which is used as in the following example:

class CNetworkManager: public iicore::TSingleton<CNetworkManager>


For code brevity (and the sanity of old-school developers ;) ) we have convenience macros for many of these singletons eg:

#define g_rNetworkManager iinetwork::CNetworkManager::GetInstance()


We use this quite extensively and we keep running into the problem that VAX's code suggestions don't work with it at all. For example, if I entered
g_rNetworkManager.
no suggestions are offered, and even hitting ctrl+space doesn't bring them up.

A little testing indicates that VAX apparently cant handle a macro which returns an object from a member (or static) function and offer suggestions based on that.
The following basic example illustrates the problem:

class CMemberObj
{
public:
	int m_iValue;
};
class COwner
{
public:
	CMemberObj& GetMember();
};
COwner cOwner;
#define MACROTEST cOwner.GetMember()


Now entering
MACROTEST.
does not result in any suggestions (I would expect m_iValue to be suggested). Is there a way to change this behavior, or is this a bug?

rhummer
Tomato Guru

USA
527 Posts

Posted - Nov 19 2008 :  10:31:06 AM  Show Profile  Reply with Quote
This has been reported before.

Read this reply by support for info on this:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=4253

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

FlintZA
New Member

South Africa
8 Posts

Posted - Nov 20 2008 :  03:22:18 AM  Show Profile  Reply with Quote
Thanks for pointing it out, my apologies my search didn't turn it up :)
Go to Top of Page
  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