PC Review


Reply
Thread Tools Rate Thread

Using .NET 1.1 via interop from .Net 2.0

 
 
schaf
Guest
Posts: n/a
 
      9th Jun 2008
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interop.CDO uses Interop.ADODB which has a higher version... muriwai Microsoft C# .NET 7 27th Oct 2011 08:00 PM
Using Excel Interop via VS.NET 2005 to create and save a new Excelworksheet.. please help! sitexcite@hotmail.com Microsoft Excel Programming 0 18th Jan 2008 07:39 PM
Re: Calling a WS-Security web-service from ASP Application via ASP.NET or .NET Class using interop Patrick Microsoft ASP .NET 2 1st Oct 2004 01:52 AM
Interop without interop Tamir Khason Microsoft C# .NET 11 1st Dec 2003 07:01 PM
Is there a published COM Interop Wrapper for Interop.MSDASC.dll? Burton G. Wilkins Microsoft ADO .NET 0 10th Nov 2003 02:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:24 AM.