[JDEV] JabberCOM Question

Thomas Charron tcharron at ductape.net
Fri Jul 21 11:49:32 CDT 2000


Quoting Appleweed <appleweed at indigenoustech.com>:
> David, that would be *huge*! :)
> What I don't understand is why the VB client app that accompanies JabberCOM
> seems to work just fine. But maybe it doesn't use the same events I 
> couldn't import into C++. I didn't look very deep into the code...

  Two major reasons why VB can support it, and VC++ doesn't..

  1) VB performs 'dynamic runtime translation' of the COM interfaces.  
Basically, VB enumerates the interfaces, and performs the linking of the 
function at run time, NOT compile time.  As part of this logic, VB can handle 
much of the marshalling dynamically, aka, more inteligently then the Visual C++ 
wizards..

  2) VB supports connection points.  The Visual C++ wizards *DO NOT*.  The 
support 'ActiveX events', which is a beast that resides on *TOP OF* connection 
points, but do more then connection points do.  The Visual C++ wizards will not 
emit the functions for connection points, as connection points do not use OLE, 
while ActiveX events do.  If you notice the encapsulation code that Visual C++ 
wizards generate, you'll see that they actually use OleDispatch to handle all 
of the COM marshalling.  OLE can;t talk connection points, and hence, the 
wizards don;t know how the heck to handle them.  At that point, you need to 
talk strait COM, and *NOT* OLE.

--- 
Thomas Charron
<< Wanted: One decent sig >>
<< Preferably litle used  >>
<< and stored in garage.  ?>>




More information about the JDev mailing list