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
 Wrapper macro confuses VA
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

BruteForce
Senior Member

Greece
32 Posts

Posted - Dec 04 2006 :  4:04:45 PM  Show Profile  Reply with Quote
Enter the following code into Visual Studio (I used 2005):

//------------------------------------------------------------------------------------
#ifdef FIREAPI_DLL_BUILD
#define FIREAPI_DLL_SPEC __declspec(dllexport)
#else
#define FIREAPI_DLL_SPEC __declspec(dllimport)
#endif

#define FIREAPI(type) FIREAPI_DLL_SPEC type WINAPI

FIREAPI(ULONG) C1394GetMaxSpeedToNode
(
IN HANDLE C1394AdapterHandle,
IN ULONG DestinationNodeID
);

int _tmain(int argc, _TCHAR* argv[])
{
ULONG x = C1394GetMaxSpeedToNode
return 0;
}
//------------------------------------------------------------------------------------

Now move to the end of the "ULONG x = " line and type a left parenthesis as if you are trying to complete the function call. You will see some incorrect behavior.
We use this macro for all the functions that our SDK provides to clients, so we would appreciate a timely fix.

Warm Regards,
Dimitris Staikos
Unibrain

When all else fails try common sense.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Dec 05 2006 :  07:52:32 AM  Show Profile  Reply with Quote
Placing this code into a test project, using VS2003 and VA 1541 I am seeing:



VA has highlighted the wrong part of the tooltip. Is this the problem you are seeing? Or are you seeing something else?

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

BruteForce
Senior Member

Greece
32 Posts

Posted - Dec 05 2006 :  08:06:24 AM  Show Profile  Reply with Quote
Yes, VA gets "trapped" into FIREAPI(ULONG) even as I type the second parameter to this function. This gets a little annoying on functions with 5-8 parameters, especially if you are used to always seeing the tooltip for each parameter as you type in the actual argument.

Thanks!

When all else fails try common sense.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Dec 05 2006 :  09:19:01 AM  Show Profile  Reply with Quote
case=3727

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 13 2008 :  01:12:10 AM  Show Profile  Reply with Quote
case=3727 is fixed in build 1649
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