471,330 Members | 1,085 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Using .NET 1.1 via interop from .Net 2.0

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

Jun 27 '08 #1
0 686

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Mike in Santa Rosa | last post: by
reply views Thread by liam_jones | last post: by
reply views Thread by liam_jones | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.