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
 Syntax coloring and macros
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

leto58
Junior Member

17 Posts

Posted - Oct 10 2008 :  6:10:53 PM  Show Profile  Reply with Quote
Hi,
I get wrong coloring when using macros, like in the following example:

#include "stdafx.h"

class MyClass
{
	void  MyFunction() {};
};

#define MMM  MyClass

void  TestFunction()
{
	MyClass  mc1;
	mc1.MyFunction();
	MMM  mc2;
	mc2.MyFunction();
}

mc1 gets proper coloring for "variables" (I set it green for this sample).
mc2 should also get this coloring but remains black.

I rebuilt symbol database, cleared cache and restarted IDE.

Regards,
Leto

VA_X.dll file version 10.4.1649.0 built 2008.09.09
Licensed to:
VA X: XXX
DevEnv.exe version 8.0.50727.867
msenv.dll version 8.0.50727.867
Font: Courier 13(Pixels)
Comctl32.dll version 6.10.6001.18000
Windows Vista 6.0 Build 6001 Service Pack 1
4 processors

Platform: Win32
Stable Includes:
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;

Other Includes:

Stable Source Directories:
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfcm;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\crt\\src;

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 12 2008 :  10:03:16 AM  Show Profile  Reply with Quote
I wasn't able to reproduce your problem here using VS2005 and VAX1649. Can you please try to paste your example into a new win32 test project to see if the coloring working here? I guess you have something in the surrounding source that cause this effect.
Go to Top of Page

leto58
Junior Member

17 Posts

Posted - Oct 15 2008 :  04:45:37 AM  Show Profile  Reply with Quote
Hi,

The example I sent was already on a brand new win32 project.
But I found the problem:
Due to issues on parsing macros that called macros, I followed the instructions given in FAQ http://docs.wholetomato.com?W363 and it was the cause of the problem. As soon as I resumed registry to default values (removed LimitMacro and LimitMacroParsing=01), I got proper syntax coloring.

It does not matter anyway, since VA was not able to parse some of my macros (which called macros) with or without the LimitMacro trick. I will send you an example of these macros when I am able to reproduce similar ones (independent of my code) on a simple project.

Regards,
Leto
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