Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Arrays parsing in C++

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
maxim2000 Posted - Apr 08 2010 : 09:29:07 AM
VA parses arrays of class objects incorrectly.

1) C++ object "Array" has neither operator . nor operator ->


2) listbox should contain members of std::map


3) listbox should contain members of RECT


Tested on VA1814/VC6/WinXpSp2
The behaviour in VS2005 is a little bit different but also wrong.
5   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Apr 16 2010 : 4:40:21 PM
Point 2: I checked this because you mentioned that this is happening without typedefining arrays. But it seems it is only happening with typedefs.

Point 3: Good catch! I was able to reproduce this here, and I have put in a new bug report for this:

case=42524

Thank you for your active help and for your patience.
maxim2000 Posted - Apr 16 2010 : 08:45:17 AM
Point 2: I'm seeing the same result as you see. The list is good in case of new project.
But still I see a wrong list for Point 3 (e.g. namedrects[0]["key"].|): it consists of the same std::map members instead of RECT ones.
accord Posted - Apr 15 2010 : 4:00:24 PM
Point 1: maybe a bad feature :)

Point 2: I am seeing this with VC6 SP6 and VA 1819:


which seems to be the good list (I get the same list when type std::map::|). I've created a new win32 test project. Do you see a different list in a new project?

Point 3: case=24414 is about recursive typedefs.
maxim2000 Posted - Apr 14 2010 : 10:18:36 AM
Point 1: I can forget pointing brackets and use dot by mistake. In this case VA supports my mistake showing listbox with std::map members. But I'm also not sure whether this is a serious bug or a bad feature :)

Point 2: I see the same effect even in case of declaration without typedefs:
std::map<LPCSTR, RECT> namedrects[3];

I don't know what is the bug behind case=24414 but anyway I hope all these 3 points are related to one bug :)
accord Posted - Apr 09 2010 : 5:58:57 PM
Point 1: I did not put in a bug report for this, since you do not see this normally, so won't "obstruct" your work. Thank you for pointing this out, though.

Point 2: I have put in a bug report for this:

case=42159

VA does not seem to support arrays defined by typedefs.

Point 3: I think this is

case=24414

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