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
 Create from Usage does not recognize _T macro
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SvenC
Tomato Guru

Germany
339 Posts

Posted - Apr 12 2011 :  05:17:24 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
18952 Posts

Posted - Apr 12 2011 :  11:43:08 AM  Show Profile  Reply with Quote
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.

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

support
Whole Tomato Software

5566 Posts

Posted - May 12 2011 :  12:51:09 AM  Show Profile  Reply with Quote
case=56734 is fixed in build 1848

Whole Tomato Software, Inc.
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