Can we compile C library as .Net dll (containing and opening access to all C libs functions) by just compiling cpp project containing code like
extern "C" {
#include <library.h>
}
with /clr:pure argument with VS? (VS10)
Or we should do something more trickey?
I found it is the best to use the old style Managed C++ for this.
CLR:PUREjust wont cut it.Example:
Compile with:
/clr:oldSyntaxNow you can reference the assebmly, and call
Bar.Foo.foo()from .NET.