All Tags » proxy (RSS)

Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • Supporting the “new” Operator in VSTA Add-Ins

    It is possible to support the “new” operator in VSTA add-ins. Integration styles which do not use a full proxy, such as NoRuntime and ProxyShim, can easily support this feature. All that is required is public constructor methods in the host application. In the ShapeAppDyanmicProgrammingModelCSharp...
    Posted to Melody's VSTA Blog by Melody on 10-20-2010
    Filed under: Filed under: , , , , ,
  • Add-in Management Options

    There are many different ways to manage add-ins. Below are some common add-in management styles which can be used alone, combined, or used side by side. 1) Basic: all interactions between the host and add-ins are executed in the Startup and Shutdown methods of the add-in. This is demonstrated in the...
    Posted to Melody's VSTA Blog by Melody on 08-24-2010
    Filed under: Filed under: , , ,
  • Binding Redirects

    As mentioned in Gary's blog Dependent Assembly Binding Redirect (by version) , it is possible to use a configuration file to change which version of an assembly to use. This can be very helpful in "tight versioning" scenarios (see blog Proxy Versioning Options for Project Templates ) where...
    Posted to Melody's VSTA Blog by Melody on 07-27-2010
    Filed under: Filed under: , ,
  • NoRuntime ProxyShim Style Integration

    The ShapeAppCSharpMacroRecordingCSharp-NoRuntime sample (not included in SDK, please contact info@summsoft.com for more information) has many benefits over the normal SDK style integration. These benefits include less memory usage (up to a factor of 10), faster load/unload and processing time for add...
    Posted to Melody's VSTA Blog by Melody on 05-07-2010
    Filed under: Filed under: , , , ,
  • 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: , ,
Page 1 of 2 (21 items) 1 2 Next >
Copyright Summit Software Company, 2008. All rights reserved.