Manually adding EasyHook to your C++ project
Read on if you are using a version of Visual Studio that is not supported by the native NuGet package or for some other reason you need to manually reference the native EasyHook library.
Here we walk through one way of manually adding a reference to EasyHook in your C++ project:
- Download the latest EasyHook binary package from downloads.
- Extract the binaries (in this example it has been extracted to a new folder under the project)
- Within your project properties add the EasyHook path to your Include and Library paths, e.g.
.\EasyHook-2.7.5870.0-Binaries\NetFX3.5Note: it does not matter which EasyHook folder you reference, as the native DLLs are the same.
- Copy EasyHook32.dll and/or EasyHook64.dll from the EasyHook binaries to your build directory or add a build task to do it for you.
- You can now add the following to your code:
Try using this approach with the “Using EasyHook with C++” tutorial.