Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create from Usage does not recognize _T macro

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
SvenC Posted - Apr 12 2011 : 05:17:24 AM
When I use the "Create from usage" command on a function call with a string constant surrounded by _T() and a resource ID like in IamANewFunction(IDS_SOME_CONSTANT, _T("some text")), neither parameter type is recognized.

At least _T() should hint that LPCTSTR is meant.

Resource IDs might be more difficult as they are typeless #defines, but a guess of int or UINT should be a good default type.
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - May 12 2011 : 12:51:09 AM
case=56734 is fixed in build 1848
feline Posted - Apr 12 2011 : 11:43:08 AM
There is a problem with _T() as a parameter, thank you for the clear example, I have put in a bug report for this:

case=56734

I am not sure what to say about the resource ID though. Strictly speaking UnknownType seems to be the correct behaviour, at least it is a clear warning to the programmer that this is something they need to think about themselves.

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