Senin, 07 Maret 2011
Integrating an unmanaged C++ .lib with C#
IntroductionIn the C++ world, many DLLs offer a static .lib that simplifies the use of the DLL - you just link in the .lib and you don't need to mess with all the LoadLibrary/GetProcAddress stuff. The managed equivalent is accomplished - very simply - by adding a reference. And, of course, unmanaged DLLs' functionality can be imported on a function-by-function basis via the DllImport attribute.
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar