-
A new sample " UpgradeHelper Sample " is available showing how to register and use an UpgradeHelper . Excerpt: To support VSTA v 1 projects in VSTA v 2 you need to create and register an UpgradeHelper . This helper is triggered when a VSTA v 1 project is opened in the VSTA v 2 IDE. If VSTA...
-
I posted a new sample today which goes with my previous blog. This sample demonstrates many of the host Application, hostID, proxy and entry point combiniations outlined in the Application, HostID, Proxy, and EntryPoint Associations blog. If there is another combination you are interested in or if you...
-
There are a variety of configurations possible between host applications, hostID's, proxies, and entry points. Which configuration to use is a design decision which requires careful consideration, especially if you are deploying multiple applications bundled together or one application targeted at...
-
You may wish to monitor a user’s actions in the IDE and respond to or cancel them. I found a great article and sample which shows how to catch any and all events. One common request that this could be used to address is responding to the user exiting out of the IDE. When the IDE is launched from...
-
There is a somewhat confusing error that appears when running setup, if the registry entry VSTAVersion = 9.0 is not present. The error states “Cannot find one or more components. Please reinstall the application.” To correct this add the above registry entry (be sure to specify “9.0”...
-
With VSTA v 2 it is possible to use generic parameters of intrinsic types with minimal effort. The example below demonstrates this with a method added to the ShapeApp.Application class which accepts a List<string>. Steps: 1) Create the proxy file ignoring the ProxyGen warnings: ProxyGen.exe Warning...
-
In the proxy file, all types and non-static members in non-classEntryPoint types are marked with a host attribute. The host attributes HostTypeAttribute and HostMemberAttribute are used to reconcile name changes. When there is no name change the attribute is unnecessary. The VSTA runtime uses this attribute...
-
The MSDN site now includes documentation for VSTA v 2.0 . The documentation available through the MSDN site is an updated version of the documentation included with the SDK. Updates in the on-line documentation include sections on how to properly expose structs and tips on debugging. This site also provides...
-
There is a new sample up demonstrating generic event handling in entry point classes. Click here to download EventSample VB v2.1 – Exposing Generic Events in Entry Point Classes Excerpt from EventSample VB v2.1 EventHandlerT in EntryPoint Classes.doc: At this time there is no direct way to expose...
-
We have new downloads up including templates and a new tool AutoProxyGen which automates ProxyGen and can be used in build events. AutoProxyGen : This tool automates the process of using ProxyGen and can be used as a build event. AutoProxyGen includes workarounds for ProxyGen bugs including automatically...
-
Solidworks Corporation has integrated Microsoft Visual Studio Tools for Applications (VSTA) into its Solidworks 2009 product line as a significant enhancement to the Solidworks API. Solidworks is a 3D mechanical CAD product used by product designers and mechanical engineers worldwide. To learn more about...
-
A common question is how to use versioning for the proxy assembly in add-ins. There are basically three different options. (Download Sample) 1) No Versioning: Only the name of the assembly is used in the project template and the first assembly in the GAC matching this name will be used. This is how ProjectGen...
-
A host, or helper application, can programmatically update a reference in a project. One instance where this is useful is when you want to ensure that a specific version of a proxy reference is used. Below is an updated version of the OpenMacroProject from the ShapeAppMacroRecordingCSharp sample which...
-
In seamless non-destructive debugging scenarios (macro recording and running) the host application must keep track of the latest version of the “macro” project assembly. The IDE offers the user many opportunities to change settings like the active configuration or the output path which can make it difficult...
-
On the third screen of ProjectGen there is an item to fill in titled “Host item name”. This item is used in two places in the project descriptor file and three places in projects based off the template: Project template descriptor file: Projects based off the template: Host Item Name Main code file Startup...