[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

microsoft.public.dotnet.framework.interop

Compact Framework interop update problem

Jeff Morin

10/10/2007 7:54:00 PM

Hi

I think that there is a problem with the interop update when a C# smart
device project references a C++ COM dll (also targetting Windows CE) under
Visual Studio 2005 SP1.

When a COM interface changes, by renaming a method for example, the interop
created by VS2005 is not updated and the new method name is not recognized.
It can be seen in the object browser where the method is properly renamed
when looking at the COM dll but the old method name is still the one we see
in the Interop dll.

I found 2 ways solve the problem but both are annoying so if you have any
suggestion or explanation it would be appreciated.
1. Increase the library version number in the COM idl file and rebuild it.
2. Build both projects and register the COM dll in Win32 and then build them
for Windows CE.

This problem or behaviour doesn't exist when working with Win32 projects,
only when targeting Windows CE projects.

Jeff Morin