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
 sal annotation in front of the function signature
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

patria
Junior Member

20 Posts

Posted - Sep 10 2008 :  3:16:16 PM  Show Profile  Reply with Quote
When sal annotation for the return value is placed in the example like this, the function is recognized as "__out_bcount_opt(MAX_VALUE_LENGTH)", not as GetMyValue, effectively the function GetMyValue is not in a symbol list.

__out_bcount_opt(MAX_VALUE_LENGTH) LPWSTR
GetMyValue(HANDLE Handle);

Is this a bug or do I have a workaround to fix this behavior?

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 11 2008 :  10:37:51 AM  Show Profile  Reply with Quote
This has been fixed in VA 1649, which has just been released.

http://www.wholetomato.com/downloads/default.asp

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

patria
Junior Member

20 Posts

Posted - Sep 11 2008 :  4:28:24 PM  Show Profile  Reply with Quote
Hmm, when I encounter this error, it is in VA 1649.
Can you verify that this is fixed?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 12 2008 :  10:56:38 AM  Show Profile  Reply with Quote
using VS2005 and VA 1649 I added the following code to a class in a C++ header file:

	__out_bcount_opt(MAX_VALUE_LENGTH) char *GetMyValue(int Handle)		{ return NULL; }


This is not quite the same as yours, I made a couple of changes to get it to compile in my test project. When I call this function in the matching cpp file this is what I am seeing:



Do you have:

VA Options -> Advanced -> Display -> Enable automatic Quick Info ToolTips

turned on or off? I am testing with this turned On.

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