Hello
I am using some 3rdparty COM objects and would like some using the
following methods,
I have imported the type library :
IDirectBufferAccess = interface
['{F080A41A-28E0-11D2-80B6-00A0C92296F1}']
function SetRequestBufferDirect(ReqBufferLen: Integer; var
ReqBuffer: Integer;
var Success: WordBool): HResult;
stdcall;
function GetReplyBufferDirect(RepBufferLen: Integer; var RepBuffer:
Integer;
var Success: WordBool): HResult;
stdcall;
end;
The example using the method in C++ is
hResult = m_pAddContactDirectBuffer->GetReplyBufferDirect(
sizeof(reply_hdr_def), (long*)&replyHdr,
&vt_success);
I am not sure what (long*)&replyHdr is doing. I think they are passing
the address of the buffer.
The imported type lib declared as integer (var ReqBuffer: Integer).
Could someone who understands C++ please help ?
Neil
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz