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
 CString::FormatMessage never appears in suggestion
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - Sep 02 2004 :  04:19:53 AM  Show Profile
CString strText;
strText.FormatMe
never shows FormatMessage.

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Sep 02 2004 :  08:14:52 AM  Show Profile
using the code:
CString strTest;
strTest.formatme|

as you say, the suggestion isn't listed. however, if i now press ctrl_space i get:



notice that the tooltip is for FormatMessageA
this could be related to 2578 in the private beta section. i will add a case tonight when i get home.

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

support
Whole Tomato Software

5566 Posts

Posted - Sep 02 2004 :  2:01:31 PM  Show Profile
There are many definitions of CString. One uses a compiler macro, __if_exists(), that VA X does not recognize. Hence, VA X does not think FormatMessage is a member of your CString.
Class CString{
  int GetLength();
   __if_exists(StringTraits::FormatMessage)
   {
     int FormatMessage();
   }
};

If our option to "Use default Intellisense" is set, or "Get content from default Intellisense" is set in VA X 10.1, FormatMessage appears as a member. (This is because the hand-crafted database shipped with default Intellisense has an entry for FormatMessage.)

If our option is not set, FormatMessage is not a member when typing "strTest.form". Interestingly, FormatMessage does appear when you type "strTest.formatm" and another press another Ctrl+Space. At this point, VA X asks default Intellisense for help.

The fix requires a change in our parser so we recognize __if_exists().

case=265

Edited by - support on Sep 02 2004 2:03:08 PM
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - Sep 06 2004 :  05:52:50 AM  Show Profile
As always:
Your support and response to problems is perfect... as perfect as your product!
Martin

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - Oct 11 2004 :  04:14:50 AM  Show Profile
I just tested this case 265 in the new Version 1274.
But it isn't fixed.

Martin

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Oct 11 2004 :  6:42:47 PM  Show Profile
*checks* this is because the case hasn't been done yet. there are lots of things to do, so not everything gets done immediately.

this is probably best, otherwise whole tomato would be setting a terrible example for my boss!

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000