Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 sal annotation in front of the function signature

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
patria Posted - Sep 10 2008 : 3:16:16 PM
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?

3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Sep 12 2008 : 10:56:38 AM
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.
patria Posted - Sep 11 2008 : 4:28:24 PM
Hmm, when I encounter this error, it is in VA 1649.
Can you verify that this is fixed?
feline Posted - Sep 11 2008 : 10:37:51 AM
This has been fixed in VA 1649, which has just been released.

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

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