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
 Header annotation parsing for the new Platform SDK
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

patria
Junior Member

20 Posts

Posted - Sep 22 2005 :  5:51:50 PM  Show Profile
VA_X Version 10.1.1423.0 built 2005.09.19

Microsoft Platform SDK (Windows Server 2003 SP1) has new header annotations, replacing macros like IN, OUT, OPTIONAL.

For an example, __in_ecount_opt(nCount) in the second parameter informs that the pHandles should have [nCount] handles.

WINUSERAPI
DWORD
WINAPI
MsgWaitForMultipleObjects(
__in DWORD nCount,
__in_ecount_opt(nCount) CONST HANDLE *pHandles,
__in BOOL fWaitAll,
__in DWORD dwMilliseconds,
__in DWORD dwWakeMask);

VA_X seems to be confused with handling the above declaration.

In the following example:


MyClass::MyFunc()
{
HANDLE myHandle;
DWORD waitResult = MsgWaitForMultipleObjects(1, &myHandle, TRUE,...);
}

When I press Ctrl-Shift-Space to pop up function information, at the [n]th position of the parameter:

(1st). Fine. "DWORD nCount" is shown as bold.
(2nd). __in_ecount_opt(nCount) is shown as bold. (-->"CONST HANDLE *pHandles" should be)
(3rd). Nothing is shown as bold. (--> "BOOL fWaitAll" should be)
(4th). __in BOOL fWaitAll is bold (--> "DWORD dwMilliseconds" should be)

I have seen this also in earlier builds also.



Edited by - patria on Sep 22 2005 5:52:26 PM

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Sep 24 2005 :  2:35:49 PM  Show Profile
case=775

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