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
 1722: Intellisence problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xxluda
Senior Member

29 Posts

Posted - Apr 17 2009 :  11:33:30 AM  Show Profile  Reply with Quote
Hi,
after updating to version 1722, VA's intellisence didn't work correctly.

I have template for SmartPtr object. I have this definition in my VA's stdafx.h :


namespace SmartObject
{
template<class T, bool bIsPolymorf = true>
class CSmartObjPtr{
T * operator->();
};

template<class T>
class CSmartObjPtrEx : public CSmartObjPtr<T,true>
{
T * operator->();
};

}


Then, in my code i have typedefs like this :

typedef SmartObject::CSmartObjPtrEx<CDbModule, Atomix::ORM::CBaseOrmObject>	XDbModule;


In previous versions of VA, when i have code

XDbModule objMod;
objMod->

intellisence correctly show methods from object CDbModule. In version 1722 VA doesn't show anything.

But, when I try definition without typedef

SmartObject::CSmartObjPtrEx<CDbModule, Atomix::ORM::CBaseOrmObject> objMod;
objMod->

everything look ok.

Is there any changes in VA's stdafx.h format ?

Thanks and best regards
Ludek Vodicka


Ludek Vodicka
Skipper Chief developer www.skipper18.com

xxluda
Senior Member

29 Posts

Posted - Apr 17 2009 :  11:50:22 AM  Show Profile  Reply with Quote
After sending this post, I found post about new "NoDepthLimit" switch, which solved part of my problem.


HKCU \\ Software \\ Whole Tomato \\ Visual Assist X \\ LimitMacro = "NoDepthLimit"


Looks that old switch "No" currently doesn't work, but with new switch VA doesn't need VA-stdafx.h help templaty anymore and when template definition is in the same file as code which use it, everything works ok.

This works:

typedef SmartObject::CSmartObjPtrEx<CDbModule, Atomix::ORM::CBaseOrmObject>	XDbModule;
XDbModule objM;
objM->


but, when i include this definition through several includes, the same code doesn't work ;-(

file ModuleDefs.h :
-------------------
typedef SmartObject::CSmartObjPtrEx<CDbModule, Atomix::ORM::CBaseOrmObject>	XDbModule;

file ModelInclude.h :
---------------------
#include ModuleDefs.h

file Test.cpp :
---------------
#include ModelInclude.h

void foo()
{
  XDbModule objM;
  objM->


Ludek Vodicka
Skipper Chief developer www.skipper18.com
Go to Top of Page

xxluda
Senior Member

29 Posts

Posted - Apr 19 2009 :  11:13:48 AM  Show Profile  Reply with Quote
After complete VA uninstalation, manualy clear registry from any VA entry and reinstalation version 1722, look intellisence works correctly now.

Ludek Vodicka
Skipper Chief developer www.skipper18.com
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18951 Posts

Posted - Apr 20 2009 :  10:08:43 AM  Show Profile  Reply with Quote
Very strange. I am glad you have managed to fix the problem.

zen is the art of being at one with the two'ness
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