Integrating VSTA with a COM object model

 

Are you integrating VSTA with a COM object model?  We’ve created a simplified approach to integration for host applications with COM OM that you may wish to consider.  This approach makes it unnecessary for you to generate a proxy of your COM object model.  It is demonstrated with this sample:

“ShapeAppBasicMFC with ObjectModelAgent sample” ShapeAppBasicMFC sample, adapted from the VSTA 2.0 SDK, is altered to demonstrate the COM ObjectModelAgent.  The COM ObjectModelAgent component allows the host application to simply pass an instance of its COM object model to VSTA for automation, rather than generating a managed proxy for the entire surface of the existing, COM object model.  The VSTA add-in/macro project will include a reference to the object model types, via an interop assembly (or PIA), to provide full intellisense for the object model at design time.

The sample demonstrates object model events like CreatedDrawing working correctly with no changes required in the host OM.

 


Posted Jun 05 2009, 01:19 PM by BillL
Filed under: , ,
Copyright Summit Software Company, 2008. All rights reserved.