All Tags » proxy (RSS)

Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • Change a proxy to make the methods within the host class accessible

    You can change a proxy to make the methods within the hostType class accessible by: 1) Remove the abstract keyword from the type declaration (drawback- add-ins will now be able to write code like “Application app = new Application();” instead of being forced to use factory methods). 2) Replace...
    Posted to VSTA Q & A Blog by BillL on 06-05-2009
    Filed under: Filed under: , , , ,
  • HostMemberAttributes and meta classes

    The HostMemberAttributes are used to reconcile name changes. When there is no name change the attribute is unnecessary. VSTA runtime uses this attribute, if available, to determine which type/method to call in the host. For example, if we change the method name for Application.NewDocument to Application...
    Posted to VSTA Q & A Blog by BillL on 06-05-2009
    Filed under: Filed under: , ,
  • Communication and transfer of the arguments between the host OM and proxy?

    Q : What can you tell me about the communication and the transfer of the arguments between the host OM and proxy? A : I believe currently there is no further documentation on this (btw, the on-line documentation is more current than the documentation included with the SDK so please refer to that; although...
    Posted to VSTA Q & A Blog by BillL on 06-05-2009
    Filed under: Filed under: , , , , ,
  • Why have proxy objects?

    Q : In VSTA, the developer has to use ProxyGen to create new objects and the end user can then use the "proxy objects." Why can't the end user just use the "origin objects?" A : Using the original objects may be possible. If the end user's customization does not need to be...
    Posted to VSTA Q & A Blog by BillL on 06-05-2009
    Filed under: Filed under: , ,
  • Are proxy references version-specific?

    Q : I have a question regarding the project references to the proxies. As I understand it, I create the proxy dll’s for my COM type libraries. Then I make my VSTA projects reference those proxy assemblies. I envision I would do that as part of my project templates so that my users could use them...
    Posted to VSTA Q & A Blog by BillL on 05-28-2009
    Filed under: Filed under: , , , ,
  • Add-In dll and proxy issues

    Q : I'm having problem loading the addin dll's. I followed the ShapeAppMacroRecordingCSharp sample and used the following steps, 1. InstantiateServiceProvider() 2. LoadAddins() 'This function compiles the path for each dll to be loaded and invokes the LoadAddin() on each dll 3. LoadAddin...
    Posted to VSTA Q & A Blog by BillL on 05-26-2009
    Filed under: Filed under: , ,
  • Running VSTA without the proxy

    The MS VSTA team has provided 2 examples of running VSTA without the proxy. Both cases simply and directly connect the add-in to the host application. Summit devs looked at these examples and offer this guidance: == The first example is the script task in SQL Server Integration Services (SSIS) Business...
    Posted to VSTA Q & A Blog by BillL on 05-22-2009
    Filed under: Filed under: ,
  • Adapter and proxy issues

    Q : I’m using ShapeAppBasicCSharp sample. I'm pretty clear on using Adapters to pass types that are not in VSTA proxy. Not clear on how to mix a proxied type with a custom adapter type. In this sample,I’ll start simply by passing the current Document as IElement through custom adapter...
    Posted to VSTA Q & A Blog by BillL on 05-22-2009
    Filed under: Filed under: , ,
  • Saving DTE and other COM Event Hook-ups

    To avoid losing an event hook-up from a COM source it is necessary to hold a local reference to the source of the event to avoid unwanted garbage collection. This is a concern for VSTA hosts hooking into DTE events as well as VSTA add-ins which use a direct reference to a COM host instead of a proxy...
    Posted to Melody's VSTA Blog by Melody on 04-29-2009
    Filed under: Filed under: , , , , , ,
  • Generics Part I: Generic Parameters of Intrinsic Types

    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...
    Posted to Melody's VSTA Blog by Melody on 10-24-2008
    Filed under: Filed under: , , ,
  • Host Attributes in the Proxy File

    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...
    Posted to Melody's VSTA Blog by Melody on 10-17-2008
    Filed under: Filed under: , ,
  • Proxy Versioning Options for Project Templates

    A common question is how to use versioning for the proxy assembly in add-ins. There are basically three different options (for VSTA v 2 see VB note below). 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...
    Posted to Melody's VSTA Blog by Melody on 08-15-2008
    Filed under: Filed under: , , ,
  • Updating Project References Programmatically

    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...
    Posted to Melody's VSTA Blog by Melody on 08-13-2008
    Filed under: Filed under: , ,
  • Nested Types in VSTA v 2 Part III: Entry Point Classes

    The sample in this post shows how to support nested types and implicitly declared events in entry point classes (note that the nested type is in the entry point class, but is not an entry point). For types nested in an entry point class, the workaround in Part I is sufficient, no additional changes to...
    Posted to Melody's VSTA Blog by Melody on 05-30-2008
    Filed under: Filed under: , , , , ,
  • Proxy Indentation Fix

    The proxy and host type map provider code files generated by ProxyGen in VSTA v 2 are not indented. Here's an easy fix. 3 ways to fix indentation: 1) Through the menu: Edit -> Advanced -> Format Document 2) Using short cuts: Ctrl + K then Ctrl + D 3) In a macro: DTE.ExecuteCommand("Edit.FormatDocument...
    Posted to Melody's VSTA Blog by Melody on 02-28-2008
    Filed under: Filed under: , , , ,
Page 1 of 2 (17 items) 1 2 Next >
Copyright Summit Software Company, 2008. All rights reserved.