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
 1424 Alt+G on smart ptr method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Oct 04 2005 :  11:20:50 AM  Show Profile
VAX 1424 on VC6: Consider this code, where IFooPtr is a COM smart pointer:
_COM_SMARTPTR_TYPEDEF(IFoo, __uuidof(IFoo));
IFooPtr pInput;
HRESULT hr;
if (SUCCEEDED(hr = pInput.CreateInstance(__uuidof(CoFoo))))
{
   if (SUCCEEDED(hr = pInput->Open(m_strFileIn)))
   //...

Pressing Alt+G on the Open method takes you to the definition of the smart pointer itself:
template<typename _IIID> class _com_ptr_t { ...

VAX 1418 would take you to the MIDL-generated header file that contains the prototype for the Open method. What would REALLY be nice is if VAX could take you to the actual implementation, if it happens to be part of your project (which, I acknowledge, is really only applicable when you're developing COM server code rather than client-only code. It's when some server components act as clients of other COM servers that this comes into play.)

Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Oct 07 2005 :  2:10:23 PM  Show Profile
i have reproduced alt_g going to an unexpected place.

case=814

being happily ignorant of COM i have simply attached your comments to this case, so they will be aware of them.

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