G
Guest
Hi,
I have some C++ static library which I would like to wrap and use in C#
applications. It appears that I have two options.
1. Wrap the static library as dynamic library (dll), use unmanaged C++. Then
invoke the method in C# by DllImport.
2. Wrap the static lib using managed C++, which will create a dll as .NET
assembly, so C# project can directly use it as reference and call methods
directly.
Not good as C++, if my understanding on approaches is correct, would the
first approach create faster execution for the same function since it is
mostly wrapped by "old faster C++" codes?
Thanks for help
Chris
I have some C++ static library which I would like to wrap and use in C#
applications. It appears that I have two options.
1. Wrap the static library as dynamic library (dll), use unmanaged C++. Then
invoke the method in C# by DllImport.
2. Wrap the static lib using managed C++, which will create a dll as .NET
assembly, so C# project can directly use it as reference and call methods
directly.
Not good as C++, if my understanding on approaches is correct, would the
first approach create faster execution for the same function since it is
mostly wrapped by "old faster C++" codes?
Thanks for help
Chris