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
 the suggestion consider data-member as function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jzq740176597
Tomato Guru

China
329 Posts

Posted - Nov 03 2013 :  7:56:42 PM  Show Profile  Reply with Quote
//AddInputs Action
class CAddInputAction: public CBaseAction
{
public:
	CAddInputAction(const QVector<xml_node_struct*>& vecLDev,const SVTTable& Sub1,const SVTTable& Rel2,bool bDel){
		LDeviceVec=vecLDev;info1Vt=Sub1;table2Vt=Rel2;bDeletePrevious=bDel;
	}
	bool isGoose()const{return info1Vt.type==eVTTGooseSub;}
	//in case @virtual is no-empty
	bool isNeedCheck()const{
		return !PuginTool::getIEDVirtual(LDeviceVec[0],info1Vt.sRefer.devName).isEmpty();
	}
	//override
	virtual void DoIt(){
		for (int a = 0; a < LDeviceVec.size(); ++a)
			CTraPuginXml::addInputsVT(LDeviceVec[a],info1Vt.refer/*sub-side*/,table2Vt.sRefer,bDeletePrevious);	
	}
/*private:*/
	QVector<xml_node_struct*> LDeviceVec;
	SVTTable info1Vt;//sub-side(first)
	SVTTable table2Vt;//rel-side(second)
	bool bDeletePrevious;
};




the snap is below the class CAddInputAction definition.All located in the same cpp.

Creation come from persist!

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 04 2013 :  7:50:07 PM  Show Profile  Reply with Quote
I wasn't able to reproduce the problem here.



Maybe if you could send in the file I may be able to repro using it. Sometimes even a little difference matters.
http://www.wholetomato.com/support/contact.asp

Please paste the topic of this forum into the description field, so we can match it up.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Nov 04 2013 :  8:01:27 PM  Show Profile  Reply with Quote
Can you please open VA's Find Symbol dialog and do a search for "info1Vt", what do you see?

This variable is coloured as a variable for me, using your class, both in the class declaration and in the listbox. This normally happens when this symbol name is used both as a variable and a function, in different places, which can confuse our colouring code.

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

jzq740176597
Tomato Guru

China
329 Posts

Posted - Nov 06 2013 :  7:56:44 PM  Show Profile  Reply with Quote
To -feline
quote:
Can you please open VA's Find Symbol dialog and do a search for "info1Vt", what do you see?




And I's sure there is only one Symbol be found. So the "info1Vt" is only a member never been used as a function name.

Creation come from persist!
Go to Top of Page

jzq740176597
Tomato Guru

China
329 Posts

Posted - Nov 06 2013 :  7:59:17 PM  Show Profile  Reply with Quote
To accord
quote:
Maybe if you could send in the file I may be able to repro using it. Sometimes even a little difference matters.


I have sent the email.
Hope you can repro the problem.Good Luck!

Creation come from persist!
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 08 2013 :  2:47:48 PM  Show Profile  Reply with Quote
I have got the file, thank you. I still see the correct colors for all pCur->info1Vt in the file.

- What Windows, Visual Studio and Visual Assist versions are you using?
- What exact language do you have selected for non-Unicode programs? (there are multiple Chinese variations)
I will try to use a similar environment which will hopefully help.
Go to Top of Page

jzq740176597
Tomato Guru

China
329 Posts

Posted - Nov 08 2013 :  9:38:24 PM  Show Profile  Reply with Quote
windows xp ,vs2008, VA2001
Chinese-?-?simplified PRC-?-?

Thanks for your patience1

Creation come from persist!
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 11 2013 :  12:41:00 PM  Show Profile  Reply with Quote
Unfortunately, I still cannot reproduce the problem.

- Just to make sure we're doing the same thing: can you please post your Ln number where this happens?
- What happens if you press goto (alt+g) on the red reference? (colored as method)
- Are all references of info1Vt colored as a method?
- Can you please export your Visual Studio and Visual Assist settings?

1. IDE tools menu -> Import and Export Settings -> Export selected environment settings

2. VA Options -> Performance -> Export Settings

So I can export them here which might help reproducing the problem.
Go to Top of Page

jzq740176597
Tomato Guru

China
329 Posts

Posted - Nov 11 2013 :  7:46:14 PM  Show Profile  Reply with Quote
quote:
- Just to make sure we're doing the same thing: can you please post your Ln number where this happens?

ln:875 in cied_reload.cpp
quote:
- What happens if you press goto (alt+g) on the red reference? (colored as method)

it will locate like below:


quote:
- Are all references of info1Vt colored as a method?

No! it's only wrong in suggestion-list;



quote:
- Can you please export your Visual Studio and Visual Assist settings?

Of course, The email has been sent with an "include" folder,has some the .h files, I think it may help.

Creation come from persist!
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 13 2013 :  5:12:20 PM  Show Profile  Reply with Quote
I was able to reproduce the problem with listboxes and put in a bug report for this:

case=78396

I was watching references and not listboxes.
Go to Top of Page

jzq740176597
Tomato Guru

China
329 Posts

Posted - Nov 15 2013 :  7:30:36 PM  Show Profile  Reply with Quote
thanks for your patience.And really sometimes catch and reproduce or report a bug need our persistence.

Creation come from persist!
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