|
Getting Out Parameter value in Jawin: msg#00015windows.devel.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> |
|---|---|---|
| Previous by Date: | Re: Passing byte arrays into C functions: 00015, Alex Kotchnev |
|---|---|
| Next by Date: | Re: Getting Out Parameter value in Jawin: 00015, Morten Andersen |
| Previous by Thread: | Passing byte arrays into C functionsi: 00015, Alex Kotchnev |
| Next by Thread: | Re: Getting Out Parameter value in Jawin: 00015, Morten Andersen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |