Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 how temporary disable dot[.] to [->] AutoConvert ?

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 - Jul 02 2013 : 01:04:50 AM
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!
2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jul 04 2013 : 11:56:46 AM
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.
steinsomers Posted - Jul 02 2013 : 10:19:36 AM
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).

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