logo       

Getting Out Parameter value in Jawin: msg#00015

windows.devel.jawin

Subject: Getting Out Parameter value in Jawin

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;



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise