Melody's VSTA Blog

Get the latest and greatest information on VSTA here! Find new samples, workarounds, and inside tips in our downloads and blogs. Get your questions answered quickly in our forums or search our site for a FAQ. We're here to help- just ask.

Check out the ShapeAppBasicVB Sample

        Included with the SDK are ShapeApp samples in C# and MFC.  A ShapeApp sample is now available with a walkthrough to for basic VSTA integration in Visual Basic.Net.  More VB.Net samples will be coming soon.

ShapeAppVB Sample


        The ShapeAppVB sample is a translation of the ShapeAppCSharp sample.  The primary difference between the two has to deal with the auto generated code files from ProxyGen- the Proxy.cs and the TypeInfrastructureManager.cs files.  ProxyGen does not work well with VB.Net libraries.  Aside from creating the descriptor xml file, the library should not be used.  The proxy file is refined and the TypeInfrastructureManager file is generated using only the descriptor xml file as input.  In the ShapeApp CSharp and MFC samples, the TypeInfrastructureManager was included in the extension file.  While it is possible to write the TypeInfrastrucureManager in VB.Net by hand, it is more convenient to use the auto generated file in its own CSharp project.  A method from our VAO file (which is also available for download) was used to access the TypeInfrastructureManager in the ShapeAppBasicVB sample.

 

 

Published Thursday, July 12, 2007 5:26 PM by Melody

Comments

  • No Comments
Anonymous comments are disabled