Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 the suggestion consider data-member as function

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
jzq740176597 Posted - Nov 03 2013 : 7:56:42 PM
//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.
10   L A T E S T    R E P L I E S    (Newest First)
jzq740176597 Posted - Nov 15 2013 : 7:30:36 PM
thanks for your patience.And really sometimes catch and reproduce or report a bug need our persistence.
accord Posted - Nov 13 2013 : 5:12:20 PM
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.
jzq740176597 Posted - Nov 11 2013 : 7:46:14 PM
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.
accord Posted - Nov 11 2013 : 12:41:00 PM
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.
jzq740176597 Posted - Nov 08 2013 : 9:38:24 PM
windows xp ,vs2008, VA2001
Chinese-?-?simplified PRC-?-?

Thanks for your patience1
accord Posted - Nov 08 2013 : 2:47:48 PM
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.
jzq740176597 Posted - Nov 06 2013 : 7:59:17 PM
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!
jzq740176597 Posted - Nov 06 2013 : 7:56:44 PM
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.
feline Posted - Nov 04 2013 : 8:01:27 PM
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.
accord Posted - Nov 04 2013 : 7:50:07 PM
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.

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