Windows Vista Forums

Writing a cmdlet when there's a COM interface
  1. #1


    Marco Shaw Guest

    Writing a cmdlet when there's a COM interface

    **Programming newbie**

    When a COM interface is available to a service, does one use this feature
    when creating a cmdlet usually or would one find another way to interact?

    I'm thinking about interacting with a service, but it is written in C.
    There's a C API, but also a COM interface available. The COM interface
    would definitely be useful with PowerShell scripts, but I'm thinking about
    maybe giving a cmdlet a try.

    Marco





      My System SpecsSystem Spec

  2. #2


    Joris van Lier Guest

    Re: Writing a cmdlet when there's a COM interface

    Marco Shaw wrote:
    > **Programming newbie**
    >
    > When a COM interface is available to a service, does one use this
    > feature when creating a cmdlet usually or would one find another way
    > to interact?
    >
    > I'm thinking about interacting with a service, but it is written in C.
    > There's a C API, but also a COM interface available. The COM
    > interface would definitely be useful with PowerShell scripts, but I'm
    > thinking about maybe giving a cmdlet a try.
    >
    > Marco


    I'd go with COM , this gives a smoother experience across scripting
    languages, asn WSH does COM too,
    i'm working on a similar project, a Query-IndexServer cmdlet that depends on
    COM Interfaces from ADODB and IXSSO.Query and IXSSO.Util,
    using tlbimp to generate an interop assembly is pretty straight forward.
    I'd be happy to try and answer any questions you have, maybe we can document
    our experiences with the SDK as programing newbies.

    regards
    Joris


      My System SpecsSystem Spec

  3. #3


    Marco Shaw Guest

    Re: Writing a cmdlet when there's a COM interface

    >i'm working on a similar project, a Query-IndexServer cmdlet that depends
    >on
    >COM Interfaces from ADODB and IXSSO.Query and IXSSO.Util,
    >using tlbimp to generate an interop assembly is pretty straight forward.


    Have a blog?



      My System SpecsSystem Spec

  4. #4


    Joris van Lier Guest

    Re: Writing a cmdlet when there's a COM interface

    Marco Shaw wrote:
    >> i'm working on a similar project, a Query-IndexServer cmdlet that
    >> depends on
    >> COM Interfaces from ADODB and IXSSO.Query and IXSSO.Util,
    >> using tlbimp to generate an interop assembly is pretty straight
    >> forward.

    >
    > Have a blog?


    It's more like a brain-cache http://whizzrd.spaces.live.com


      My System SpecsSystem Spec

Writing a cmdlet when there's a COM interface problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quest AD cmdlet -what is the cmdlet to remove computer object IT Staff PowerShell 2 30 Oct 2008
Invoking Cmdlet Get-Location from cmdlet,cant get Currnt Directory Vikram PowerShell 2 05 Jun 2008
Whether a cmdlet derives from cmdlet or pscmdlet Marco Shaw PowerShell 1 19 Sep 2007
Writing a cmdlet: using a variable named "object" Marco Shaw PowerShell 3 17 May 2007
Writing a cmdlet: "Does not exist in the current context" error Marco Shaw PowerShell 1 09 May 2007