Beeeeeeeeeeeeves wrote:
What NOT to do: "MANAGED C++" - it is dire!
What *to* do: create an unmanaged C++ dll and call it using PInvoke (i.e.
the DllImport statement, in namespace System.Runtime.InteropServices)
Overall that is a rather broad statement and can lead to extreme problems.
DllImport is not type safe, so using it poses far more risk than "Managed
C++". Using C++ to create a type safe wrapper that can be exposed to other
..NET languages is by far a more superior approach.
There are instances where using DllImport is preferable (perhaps when
dealing with multiple AppDomains in the VC7 or VC7.1 products), but the
statement here doesn't discuss that at all.
--
Brandon Bray, Visual C++ Compiler
http://blogs.msdn.com/branbray/
This posting is provided AS IS with no warranties, and confers no rights.