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
 . turns to -> inside quoted string
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bins
Ketchup Master

United Kingdom
77 Posts

Posted - Oct 25 2005 :  10:50:03 AM  Show Profile  Reply with Quote
typing
"blah : file.
results in
"blah : file->

hardly a showstopper but thought you should know ...

Rob

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Oct 26 2005 :  7:10:25 PM  Show Profile  Reply with Quote
using VS 2003, C++ and VA 1428 i have typed in both the lines:

char *pszTest = "this. is. a. string. with. dots.";

and

char *pszTest = "this. is. a. string. with. dots.

so one with the double quotes closed, and one with them open. in both cases all of the dots were left alone. i have also tried your string, both with double quotes open and closed, and again everything was fine. which IDE and version of VA were you using? does this happen in all files? i am guessing this is somehow context sensitive, or related to what is in front of the dot.

zen is the art of being at one with the two'ness
Go to Top of Page

bins
Ketchup Master

United Kingdom
77 Posts

Posted - Oct 27 2005 :  5:46:30 PM  Show Profile  Reply with Quote
Try this ... you need both lines



// declare p as a pointer 

char *p = "p."; // works ok

char *p2 = "p.   // . becomes ->



once p is known to be a pointer, . always becomes ->
this is usually what's wanted, except inside quotes or comments

VA 1428 VS2003

Rob

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Oct 27 2005 :  7:01:20 PM  Show Profile  Reply with Quote
got it now

case=864

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jan 25 2006 :  7:32:05 PM  Show Profile  Reply with Quote
Fixed in 1440.
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