Using COM in C#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • newsreader

    #1

    Using COM in C#

    Sometimes COM objects return type of object from their function calls. Using
    strong type that is suggested by MS documentation fails in C# with error
    "invalid cast". Does anybody know how to deal with this problem?


  • newsreader

    #2
    Re: Using COM in C# SOLVED

    I have found the solution to this.
    One has to use Marshal.CreateW rapperOfType

    "newsreader " <someone@somewh ere.com> wrote in message
    news:E62Va.783$ Cx4.216404@news 20.bellglobal.c om...[color=blue]
    > Sometimes COM objects return type of object from their function calls.[/color]
    Using[color=blue]
    > strong type that is suggested by MS documentation fails in C# with error
    > "invalid cast". Does anybody know how to deal with this problem?
    >
    >[/color]


    Comment

    Working...