[JDEV] JabberCOM c++ sample

Peter Millard me at pgmillard.com
Thu May 17 11:29:18 CDT 2001


Rob - this is excellent news...I've been hoping someone would get a basic
client working in VC++... please email me directly at me at pgmillard.com for
getting the sample included on the JabberCOM website.

Peter.

----- Original Message -----
From: "Rob Kooper" <kooper at cc.gatech.edu>
To: <jdev at jabber.org>
Sent: Thursday, May 17, 2001 11:28 AM
Subject: Re: [JDEV] JabberCOM c++ sample


> I played around some and do have it working. I'll check what I have into
> sourceforge later this evening (and post the URL once it has been accepted
> etc). It is a simple client that can connect, see who is online, receive
> messages and presence. All written in C++.
>
> I do not use IDispatch, I have my dispatcher incorporated in the DOC part
> (client is written as a doc/view SDI app).
>
> Rob
> ----- Original Message -----
> From: "Dai Jin" <dai_jin at email.com.cn>
> To: <jdev at jabber.org>
> Sent: Thursday, May 17, 2001 12:00 AM
> Subject: Re: [JDEV] JabberCOM c++ sample
>
>
> > Hello, david.belius,
> >     I have tried the same way with you. And i have gotten the same.
> > I don't know why the OnConnect() sink can't be fired. And it seemed
> > that no one has tried using the COM in VC++(i never see any project).
> > Can u get some idea?
> >
> > Best Regard,
> > Jim
> >
> > >Are there any samples online?
> > >I need info about the eventsink stuff especially.
> > >I read in a post in the archives that you needed to create a COM object
> > >to catch the events.
> > >I am not using this method, i have class based on IDispatch. I overload
> > >Invoke() to catch the events.
> > >Then i create a instance of the class with the c++ new operator. I then
> > >create a connection point and connect my class to IJabberSessionEvents,
> > >like this:
> > >
> > >
> > >
> > >         MyEventSink *e = new MyEventSink;
> > > IConnectionPointContainer *conncont;
> > > IConnectionPoint *conn;
> > > DWORD cookie=666;
> > >
> > > hr = js->QueryInterface( IID_IConnectionPointContainer,
> (void**)&conncont );
> > > if( FAILED(hr) )
> > > printf("Error in query interface\n");
> > >
> > > hr = conncont->FindConnectionPoint( DIID_IJabberSessionEvents,
&conn );
> > > if( FAILED(hr) )
> > > printf("Error in FindConnectionPoint\n");
> > >
> > > conncont->Release();
> > > conn->Advise( e, &cookie );
> > >
> > >
> > >This method seems to work because i recieve OnXML() events. On the
other
> > >hand i don't recieve any OnConnect() or OnAuthError() or any other
> > >events when i should be recieving them.
> > >
> > >Can anyone point me to a sample?
> > >
> > >/David
> > >
> > >_______________________________________________
> > >jdev mailing list
> > >jdev at jabber.org
> > >http://mailman.jabber.org/listinfo/jdev
> >
> >
> >             Dai Jin
> >             dai_jin at email.com.cn
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
> >
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>




More information about the JDev mailing list