IRpcStubBuffer.DebugServerQueryInterface definition problem lazarus / 67-Windows ---------------------------------------------------------------------- 440bx · 2025-07-02 04:44 Hello, In activex.pp, DebugServerQueryInterface is defined as follows: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i        Function DebugServerQueryInterface(CONST pv : Pointer):HResult; StdCall; In C/C++ the definition is: Code: C  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i         virtual HRESULT STDMETHODCALLTYPE DebugServerQueryInterface(          /* [annotation][out] */            _Outptr_  void **ppv) = 0; 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.