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.
Posted
Jul 12 2007, 05:26 PM
by
Melody