> There is a 3rd party library that is a bit complex, has a number
> of functions and structs and variable length data, the whole bit.
[quoted text clipped - 3 lines]
> interface", but he never talks about how to actually do this. Can
> anyone point me to documentation about how to do this?
You can use managed extensions (MC++) to wrap an unmanaged class. The
managed wrapper can then be used in C# or other managed code.
--
Ajay Kalra [MVP - VC++]
ajaykalra@yahoo.com
Sam Carleton - 26 Mar 2005 01:15 GMT
>> There is a 3rd party library that is a bit complex, has a
>> number of functions and structs and variable length data, the
[quoted text clipped - 8 lines]
> class. The managed wrapper can then be used in C# or other
> managed code.
Wonderful! Can you give me the title of an MSDN Document to get
me pointed in the right direction? So far, the best I have been
able to find is: "Interoperating with Unmanaged Code" From what
it looks like to me, this only deals with calling an unmanaged
DLL, not wrapping a unmanaged C++ class in a managed C++ class.
Sam
ajaykalra@yahoo.com - 28 Mar 2005 19:37 GMT
This article is little dated but it should still work fine:
http://msdn.microsoft.com/msdnmag/issues/02/02/ModernC/
It demonstrates wrapping a unmanaged class in a managed object.
--------
Ajay Kalra
ajaykalra@yahoo.com