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
 color error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

AlphaDog
New Member

7 Posts

Posted - Aug 31 2004 :  5:19:27 PM  Show Profile
When I have a function that takes two parameters, and I make the first 'this' and the second a define, the colorization is off..

It should look like this:

somefunc( this, NULL);

But it ends up like this:

somefunc( this, NULL);

It only happens when the first param is a this pointer and the second is a define. Happens anywhere a define follows the this keyword.

Anyone know why this is..?

~Scott

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 07 2004 :  6:58:50 PM  Show Profile
definetly looks like a bug

case=274

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

imbmay
New Member

3 Posts

Posted - Oct 26 2004 :  3:21:49 PM  Show Profile
I'm having a similar problem with 'this' (lower case t h i s) in a commentted line or not (I found it because a comment had 'this' [with the quotes] in it), it is changing the coloring of a stable preprocessor macro (purple italics) in the previous line to brown (like a method call).
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 27 2004 :  1:25:26 PM  Show Profile
imbay:
Can you post a small screen shot of the problem?

You are welcome to send your GIF to [email protected]. We can post for you.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 27 2004 :  3:03:09 PM  Show Profile
Go to Top of Page

imbmay
New Member

3 Posts

Posted - Oct 27 2004 :  3:24:33 PM  Show Profile
To make the GIF in the previous posting I just created an empty header file and added the text, this was all that was needed to reproduce the problem. The macro CPPUNIT_ASSERT is included in a file added to the VS.NET TOOLS > OPTIONS... > Projects > VC++ Directories, Include Files list. As the comments above indicate, the macro is displayed incorrectly if the line following the line with the macro contains the word "this" as the last word on the line, or if the word "this" is in quotes (single or double) and is not followed by a letter. If the "this" with out quotes has any character (including white space) following it, the macro is displayed correctly. If the "this" with qoutes has nothing, or anything other than a letter following it, it displays incorrectly.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Oct 28 2004 :  5:53:11 PM  Show Profile
my machine doesnt recognise CPPUNIT_ASSERT, but it does the same thing with assert, which is useful.

i was able to simplify your 3rd case down to:

    assert(expectedMoney == money);	// displayed as method.
    // this?

interestingly if you replace the '?' with '$' then assert is displayed correctly.

case=410

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

imbmay
New Member

3 Posts

Posted - Oct 29 2004 :  08:18:26 AM  Show Profile
CPPUNIT_ASSERT is from the CPPUnit library which I've added to my solution, didn't think of trying ASSERT. In the third example I was just listing all of the characters that didn't correct the issue.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000