[JDEV] Re: Re: JabberCOM .OnMessage 'Tag' Parameter help
David Banes
dbanes at ozemail.com.au
Tue Jun 24 18:00:18 CDT 2003
>
> Yeah, you should just be able to do something like:
>
> var
> xml: IXMLTag;
> begin
> xml := (tag as IXMLTag);
>
> ... do stuff with xml instead of tag ...
> end;
>
> That should do the appropriate IDispatch magic on your behalf. If that
> object doesn't support the IXMLTag interface (it ought to if it's
> coming directly from jabberCOM), then an exception should be thrown.
>
> On another note.. if your using Delphi + JabberCOM, you should really
> look into using JOPL which is the underlying library I wrote for
> Exodus. It's all Delphi native, and a MUCH MUCH MUCH better
> architecture. It also removes all of the COM overhead of using
> JabberCOM and the associated regsvr32.exe madness which comes with
> redistributing JabberCOM. Using JOPL, everything is compiled in.
I tried this and it causes the compiler to generate the following error;
'Operator not applicable to this operand type'
I'll take a look at JOPL, I'm doing the regsvr32 stuff in the app
startup code using Win API calls, I check to see if JabberCOM is
installed and if not install it, but you are correct JOPL looks like a
cleaner implementation.
David.
More information about the JDev
mailing list