Update 1:
I am wondering whether I can reference to a .lib file, but it seems that I cannot. If this is true, and I have no source code of the C++ project, How can I use its methods? Btw, I'm using FastCV library.
I come across a situation that I need to call C++ methods from C# code. The C++ generated files structure:
lib
--libfastcv.lib
--vc120.pdb inc
--fastcv.h
--fastcv.inl
--stdint.h
I know how to call C++ methods from C# :
[DllImport("libfastcv.lib",CallingConvention=CallingConvention.Cdecl)]
public static extern <ReturnType> <MethodName>(<Parameters>);
But I think the .h and .inl files need to be included in my C# project as well. So how to include them?
Thank you very much.