I have a C function without a class. its just a function in a header file.
I want to expose it as managed code, so i am creating a new C++ file which had
public ref class managedClass
So i can use the managed code in C# like
var test = managedClass.functionName(,,);
you only need to call the c-func in a member function. But you better do some error checking around it.
If you link the dll with "delayload" you will get some startup benefit.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)