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
 how temporary disable dot[.] to [->] AutoConvert ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jzq740176597
Tomato Guru

China
343 Posts

Posted - Jul 02 2013 :  01:04:50 AM  Show Profile  Reply with Quote
dot[.] to [->] AutoConvert is very useful.
And I always have that option on.

But for some smartPtr wrapper-class,even though I want the [.] after the object but it's always be convert to [->] .

Now the problem is in VA1940 VC6. In later version IDE,if encounter this problem just press[Backspace] the [->] will become [.].

So I hope can deal with that? i.e may temporary disable the AutoConvert by pressing Ctrl or sth.

regards!

Creation come from persist!

steinsomers
Ketchup Master

Belgium
65 Posts

Posted - Jul 02 2013 :  10:19:36 AM  Show Profile  Reply with Quote
It is useful, but I turned the option off long ago, annoyed by the insistence of VAX to block access to the dot symbol. It didn't let you choose the real dot over the arrow in any intuitive way I could find (the only way I found was to type a dot elsewhere, copy it, and paste it over the arrow). In 1946, with Visual C++ 2005, things are a lot better. There is an option for disabling the conversion if operator-> is overloaded (don't know if that is recent), and it seems to work; you can also type a second dot and it comes our straight, so that you can then delete the arrow; or you can select the arrow and overwrite it with dot. The backspace thing works too, and it opens a suggestion listbox (albeit an inappropriate one if you do it on a plain old pointer).
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19063 Posts

Posted - Jul 04 2013 :  11:56:46 AM  Show Profile  Reply with Quote
as steinsomers says, the option:

VA Options -> Advanced -> Correction -> Convert dot to -> if operator -> is overloaded

might help here. steinsomers, this is not that new, but it was added somewhere along the line.

Does your wrapper class overload the -> operator?

If so, and if turning off this VA option is not what you want, we should be able to hide the overloaded -> operator from VA by using a macro. If you are interested I will run a couple of tests here and post a possible code edit to do this.

Alternatively type Backspace after the dot is converted to ->, and VA will undo this, and leave you with a dot.

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