Getting started with the project:
- Download and install Visual Studio Community using the Visual Studio Installer.
- Install component
Desktop development with C++
- Open
ReGameDLL_CS/msvc/ReGameDLL.sln
with Visual Studio
- Set the following properties for the ReGameDLL project:
Platform Toolset:
v143
(or any available, if newer). Apply these changes to all project configurations (Debug*, Release*).
Or apply the proposed Review Solution Actions
Set the output directory for mp.dll
(optional)
Create a new file regamedll\msvc\PublishPath.txt
with the following contents:
C:\Program Files (x86)\Steam\steamapps\common\Half-Life\cstrike\dlls
The compiled library mp.dll
will be located at the specified path when building the project again.
Building (compiling) a project
Select the ReGameDLL project, click Build
. Successful compilation will be reported in the output window, indicating the location of the output file mp.dll
.
Debugging in Counter-Strike
Set project Debugging
property like this:
and Run Local Windows Debugger
:
Result: