[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

Strange!!! GetComInterfaceForObject behaves differently on win2k and winXP

dotNeter

11/23/2006 6:51:00 AM

I wanna get a specified interface from a com object, so I just passed
that object and destination interface type into
GetComInterfaceForObject.

However, the same program worked quite well on winXP, but always failed
on win2k.
I got InvalidCastException on this invocation.

My win2k is pro sp4, so it should support .NET framework 2.0.

Can someone give a hint?
Thx.