Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Macro _T() in Definition Field

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
AndreasS Posted - Feb 13 2014 : 06:37:46 AM
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?
4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 27 2014 : 11:23:22 PM
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.
feline Posted - Feb 26 2014 : 9:50:39 PM
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.
AndreasS Posted - Feb 21 2014 : 03:29:34 AM
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).
feline Posted - Feb 20 2014 : 4:33:20 PM
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("|")

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000