*** The dll is unmanaged (native c++) :
1. right-click the "project" icon in solution explorer
2. click "Add" -> "Existing Item"
3. browse and select the dll (you will have to change the "file type" combo-box to be able to see it)
4. click the dll in solution explorer
5. in the properties pane change the "Copy to Output Directory" property to "Copy if newer" - to make sure the dll is copied to the debug/release directory upon compilation.
6. to access methods on the dll - you will have to use something like [DllImport("User32.dll")] - see documentation about "DllImport" to learn how to "Marshal" (connect, bridge) native methods and data types into .Net methods and data types.
Partager