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
 Macro _T() in Definition Field
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AndreasS
Junior Member

Germany
11 Posts

Posted - Feb 13 2014 :  06:37:46 AM  Show Profile  Reply with Quote
Hello,

Sometimes we use the marco _T() from TCHAR.H

#define __T(x) L ## x
#define _T(x) __T(x)

in other macros

#define STRING_SEPARATOR _T("|")

Wenn I put the curor on STRING_SEPERATOR in
_tcsclen(STRING_SEPARATOR)

the Definition Field of the VisualX toolbar shows

#define STRING_SEPARATOR Lx

but of corse I want to see
L"|"

Can you help?

Edited by - AndreasS on Feb 17 2014 07:29:04 AM

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Feb 20 2014 :  4:33:20 PM  Show Profile  Reply with Quote
Which IDE and version of VA are you using?

I am getting a different behaviour here. I have even created a new, default C++ MFC app in VS2010 with VA 2023 to make sure that my test project settings were not a factor here.

With the line of code:

_tcsclen(STRING_SEPARATOR);

when I place the caret into the macro "STRING_SEPARATOR" the VA definition field shows:

#define STRING_SEPARATOR _T("|")

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

AndreasS
Junior Member

Germany
11 Posts

Posted - Feb 21 2014 :  03:29:34 AM  Show Profile  Reply with Quote
I use the VS2012 and VA_X.dll file version 10.8.2023.0 built 2013.12.20.

But maybe importent is that I enabled deep macro parsing (from the FAQ: http://docs.wholetomato.com?W363).
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Feb 26 2014 :  9:50:39 PM  Show Profile  Reply with Quote
That makes sense, I can see how this would be connected, but so far I cannot reproduce the problem with deep macro parsing turned on, and I am not sure why. Are you seeing this in all places where you use the macro "STRING_SEPARATOR" or only some times?

Can you please export your VA and IDE settings and send them to me:

VA Options -> Performance -> Export Settings
IDE tools menu -> Import and Export Settings -> Export selected environment settings

I can then import them here and see if I can reproduce the problem.

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

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Feb 27 2014 :  11:23:22 PM  Show Profile  Reply with Quote
My mistake, I should have added to please submit the files via the form:

http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.

I have replied to your email, so you can just reply to my email with the files attached instead if that is easier.

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