Unmanged code wrapper

Nov 3, 2010 at 11:34 AM

I need to use an unmanaged code library file (.lib) in a C# project.  From what I have read this should be done by creating a wrapper class using C++/CLR.  The problem I have is that the examples I have found to do this do not explain how to handle virtual functions in the library.  Are there any samples in the All-In-One Code Framework that demonstrate how to handle this?


Nov 3, 2010 at 1:43 PM

I have been trying to get this going with the wrapper class and I am running into linker issues caused by the use of Lockit in the .lib file.  Someone I work with suggested that I create a COM object instead of the Wrapper class.  What is the best solution?

Thanks again.