I have a native C++ project. It can produce either a dll or lib file.
I am creating a C++.NET project (C++ Windows Form application) in Visual Studio 2010. I Would like to add that library into this project in order to call public methods from that library.
I have three questions:
- Should I produce a dll or lib file from the native C++ Project?
- How can I add that native library in the C++.NET project?
- I am looking for sample code to show how to call a method from the native library in the C++.NET project.
I am very new to C++.NET.
Take a look at this:
http://www.codeproject.com/KB/mcpp/usingcppdll.aspx