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
 1645: Macro typed variables not detected.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Krakken
Ketchup Master

Australia
63 Posts

Posted - Jul 15 2008 :  03:27:48 AM  Show Profile  Reply with Quote
Variables that have their types defined in a macro are not being highlighted properly by VAX. In my proper code, the function is also not being highlighted at all but I can't seem to reproduce that in this simple format so it must be something deeper.

#define integer int;

class CIntHolder
{
public:
	integer GetInteger()
	{
		return m_int;
	}
	
protected:
	integer m_int;
};

Edited by - Krakken on Jul 15 2008 03:29:28 AM

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jul 15 2008 :  1:31:25 PM  Show Profile  Reply with Quote
What are you seeing, and what are you expecting to see? This is what I am seeing, using VS2005 and VA 1645. Note I have added a second member variable for reference:



This all looks correct to me, given the colour I have assigned to functions.

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

Krakken
Ketchup Master

Australia
63 Posts

Posted - Jul 16 2008 :  12:23:46 AM  Show Profile  Reply with Quote
That's odd... this is what I see:

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jul 16 2008 :  1:52:29 PM  Show Profile  Reply with Quote
Do you see the same odd colouring in a new, default project? I am wondering if this is somehow project specific.

Does changing the variable name "m_someVar" to something unique like "khfjkhsdfkjsd" make any difference?

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

Krakken
Ketchup Master

Australia
63 Posts

Posted - Jul 16 2008 :  10:28:01 PM  Show Profile  Reply with Quote
This example was taken from a new, default project and I'm seeing the same thing, regardless of name, unfortunately.

Edited by - Krakken on Jul 16 2008 10:32:17 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jul 17 2008 :  10:28:32 AM  Show Profile  Reply with Quote
What happens if you use:

#define FelineVATestBanana float
FelineVATestBanana m_FelineTestUsingThisMacroFloat;


instead? I am wondering if unique symbol names will make any difference.

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