Using .NET 1.1 via interop from .Net 2.0

Discussion in 'Microsoft C# .NET' started by schaf, Jun 9, 2008.

  1. schaf

    schaf Guest

    HI NG!
    I have converted my Project from .NET 1.1 to .NET 2.0.
    In my project I use C++ assemblies via an interop dll.
    When I use the old assemblies (old means the same referenced asseblies
    as I used for the same project in .NET 1.1)

    But if I convert my subproject to .NET 2.0 nad I use this ones, I get
    a InvalidCastException: Specified cast not valid:.

    Convert.ToBoolean(myInteropObject.AdviseEventSink(this));

    Does the convertion of the project to .NET 2.0 change any settings? Or
    is it not permitted to pass a .NET 2.0 object as an EventSink ? But
    why does it work with the old assemblies?

    Do you have hints?

    Thanks
    Regrads
    Marcel
     
    schaf, Jun 9, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nicholas Paldino [.NET/C# MVP]

    Re: COM Interop - Using C#.Net DLL from Visual Basic 6

    Nicholas Paldino [.NET/C# MVP], Jul 25, 2003, in forum: Microsoft C# .NET
    Replies:
    0
    Views:
    292
    Nicholas Paldino [.NET/C# MVP]
    Jul 25, 2003
  2. Tamir Khason

    Interop without interop

    Tamir Khason, Nov 30, 2003, in forum: Microsoft C# .NET
    Replies:
    11
    Views:
    458
    Alvin Bruney
    Dec 1, 2003
  3. Willy Denoyette [MVP]

    Re: Help with accessing .NET 2.0 COM interop libraries via classic ASP

    Willy Denoyette [MVP], Jan 5, 2007, in forum: Microsoft C# .NET
    Replies:
    1
    Views:
    331
    Willy Denoyette [MVP]
    Jan 5, 2007
  4. Arnshea

    modifying a string array via MFC COM Interop

    Arnshea, Nov 28, 2007, in forum: Microsoft C# .NET
    Replies:
    6
    Views:
    250
    Giovanni Dicanio
    Nov 28, 2007
  5. muriwai
    Replies:
    7
    Views:
    4,465
    abecerra
    Oct 27, 2011
Loading...

Share This Page