Getting Out Parameter value in Jawin

Mukund Wassan <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <LISTSERV%[email protected]>
Hello Friends,

This would have asked before, but still i could not get an answer to it.
so here it is again,

Is it possible, to get the out parameter result using jawin (preferably
without using stub classes). I wish to invoke the method dynamically, and
probably wish something like this,

--start code---
ptr = new DispatchPtr("progid");
Variant v = new Variant();
v.bstrVal = "resultsent"
Boolean b = (Boolean) ptr.invokeN("DRequest", new Object[]
{"request","data",v}));
----end code---
v.bstrVal is updated with the new value set by the COM object.

What would be the implementation in jawin to achieve something similar to
the above code.

To elaborate:

The snapshot idl of the COM interface and method is as follows:
interface IRequest : IServer {
[id(0x0000000)]
HRESULT DRequest(
         [in] BSTR request,
         [in] BSTR data,
         [out] BSTR* result,
         [out, retval] VARIANT_BOOL* returnVal);
};
    [
      uuid(0x0000000-0000-0000-0000-0000),
      version(1.0),
      helpstring("ARequest Object")
    ]
    coclass ARequest {
        [default] interface IRequest;
    };

The method implemented in delphi is as follows:

DRequest(const request: WideString; const data: WideString; out result:
WideString): WordBool;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.