[JDEV] JabberCOM c++ sample
Robert Temple
robert.temple at dig.com
Sun Jun 3 17:49:36 CDT 2001
The SOCKS library I'm using needs it for now. I hope that I'll
eventually be able to remove its CRT dependency.
A number of other sub-projects in this Jabber client don't
link in CRT. Saves a nice 20k or so.
-Robert
> -----Original Message-----
> From: Max Metral [mailto:Max.Metral at peoplepchq.com]
> Sent: Wednesday, May 23, 2001 2:57 AM
> To: 'jdev at jabber.org'
> Subject: RE: [JDEV] JabberCOM c++ sample
>
>
> Did you need CRT for any particular function? I've had some
> experience
> removing CRT from ATL projects if you'd like any help.
>
> -----Original Message-----
> From: Robert Temple [mailto:robert.temple at dig.com]
> Sent: Wednesday, May 23, 2001 3:07 AM
> To: 'jdev at jabber.org'
> Subject: RE: [JDEV] JabberCOM c++ sample
>
>
> Yes, but it doesn't have all the extra helper functionality that
> JabberCOM has. Like IJabberRoster and IJabberMessage, etc.
> It uses MSXML3. It uses ATL, although I had to include the CRT.
> It is 48k compressed.
>
> Maybe I'll release it to the public soon. I've attached a copy
> of the IDL file if you are interested.
>
> -Robert
>
> > -----Original Message-----
> > From: Max Metral [mailto:Max.Metral at peoplepchq.com]
> > Sent: Thursday, May 17, 2001 6:32 AM
> > To: 'jdev at jabber.org'
> > Subject: RE: [JDEV] JabberCOM c++ sample
> >
> >
> > I don't know of a sample, but are you sure those other events
> > are part of
> > the same connection point?
> >
> > This reminds me, has anybody thought about/started to write a
> > JabberCOM
> > equivalent in C++ using MSXML or SAX2? Would be a heck of a
> > lot smaller.
> >
> > -----Original Message-----
> > From: david.belius at chello.se [mailto:david.belius at chello.se]
> > Sent: Thursday, May 17, 2001 7:40 AM
> > To: jdev at jabber.org
> > Subject: [JDEV] JabberCOM c++ sample
> >
> >
> > 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
> > _______________________________________________
> > 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