Recent

Author Topic: IRpcStubBuffer.DebugServerQueryInterface definition problem  (Read 574 times)

440bx

  • Hero Member
  • *****
  • Posts: 6369
Hello,

In activex.pp, DebugServerQueryInterface is defined as follows:
 
Code: Pascal  [Select][+][-]
  1.        Function DebugServerQueryInterface(CONST pv : Pointer):HResult; StdCall;

In C/C++ the definition is:
Code: C  [Select][+][-]
  1.         virtual HRESULT STDMETHODCALLTYPE DebugServerQueryInterface(
  2.             /* [annotation][out] */
  3.             _Outptr_  void **ppv) = 0;
  4.  
Note that what is returned is a pointer to a pointer, not just a pointer as the Pascal definition has it.  In addition to that, the parameter cannot possibly be "const" since "pv" is where the value is returned.

More precisely, what's returned is a pointer to an interface.


FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018