Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Incorrect syntax sometimes for VS 2010 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
arupert Posted - May 17 2012 : 2:03:04 PM
If I declare a graphics pointer using a partial namespace path, the syntax shown is wrong for the methods. For example: Graphics ^g = e->Graphics.

I finally found out that if I declare a graphics pointer using the full namespace path, the correct syntax is shown. For example: System::Drawing::Graphics ^g = e->Graphics.

The image below shows the syntax displayed for each one. The syntax for g1 is incorrect. The syntax for g2 is correct.



Is there some setting for this? Or is this a bug? At least there is a workaround.

3   L A T E S T    R E P L I E S    (Newest First)
accord Posted - May 21 2012 : 6:41:28 PM
Thank you for the test project, I was able to reproduce the problem and put in a bug report for this:

case=66816
arupert Posted - May 18 2012 : 5:40:50 PM
Hi accord, thanks for looking into this.

Unfortunately, I get the same result if I use your example. I created a new C++ Windows Forms Application project, then added the code to the form load event.

Here is what I see:




In my original post, I was using the graphics from a PaintEventArgs instance (e->Graphics). Even when the incorrect syntax is displayed, the project compiles and works.

I am using VS 2010 SP1 C++. I also have VS 2008 installed and VS 2011 Beta installed on the same system.

I sent a test project via the URL you provided.

[Edit] I should also mention that I am using the latest build of Visual Assist X (10.7.1903.0 build 2012.04.03).

Thanks

accord Posted - May 18 2012 : 3:40:48 PM
Interesting. Well, first of all to be able to help I will need to reproduce the problem.
As my attempt to do so I created a new C++/CLI project, double clicked on the form, and typed your example to Form1_Load().
Unfortunately, I wasn't able to reproduce your problem. You can see my result on the following screenshot.



So we need to figure out what is causing the different behavior for you. Probably you have a slightly different context, e.g. you used a local variable "e" to set the values for g1 and g2, while I left it uninitialized, since I don't know what form was it declared and initialized. It may matter. Can you please try creating a clean new test project to see if you can reproduce the problem there? If so, please zip up and send it in so I can investigate. Certainly if you can create a new method where you can repro the problem, you can post the whole method here as text (maybe with a screenshot), if it is easier for you to do.

You can send in the file(s) using the following form:
http://www.wholetomato.com/support/contact.asp

Please paste the URL of this topic to the description field so we can match it up. Thanks.

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