Annoying interop file
Posted on 2005-05-14
Hi, I am using VB.NET to write a program that utilises the Messenger API to perform messenger-like functions. I have included the Messenger API Type Library COM object as a reference (which is all that is needed) but whenever I compile the program I end up with a Interop.MessengerAPI.dll file in the output directory. The problem is that whenever the executable isn't in the same folder as the interop file, it fails with an unhandled exception.
I have tried writing this program in VB6 and all worked perfectly, no interop file dependecy.
Could someone please tell me how to get rid of this annoying dependency or let me know of some sort of .NET alternative to the type library.
Any help is greatly appreciated.