D++ (DPP)
C++ Discord API Bot Library
Building on Windows

To build on windows follow these steps exactly. The build process depends on specific libraries being installed on your system in specific locations.

Note
You should not need to build a copy of the library for windows - DLL, LIB and EXP files for Windows and visual studio 2019 64-bit will be provided in the github version releases. Unless you wish to submit fixes and enhancements to the library itself you should use these releases instead.

Instructions here are subject to change!

  1. Make sure you have Visual Studio 2019 Community. NOT Visual Studio Code. You can download the correct version here.
  2. Download and install cmake from here and install it to the system path.
  3. Download windows version of git here install it to your path.
  4. Download and install vcpkg to the default recommended path
  5. Open a command prompt window.
  6. Use the following command to install openssl and zlib via vcpkg: c:\vckpg\vcpkg.exe install openssl:x64-windows zlib:x64-windows
  7. Change to the directory where you want to clone the sources.
  8. Issue the command: git clone https://github.com/brainboxdotcc/DPP.git
  9. Issue the command: cd DPP
  10. Issue the command: build.bat
  11. Build a config.json file in the directory above the test.exe containing a valid bot token and shard count.
  12. Start the test bot!

Troubleshooting

If the program fails to build, you may need to adjust build.bat to suit paths on your system, notably the path to msbuild.

After compiling

After compilation you can take the .dll, .lib, .pdb and .exp files and copy them into your project as needed. You can also just start changing test.cpp to suit your needs, and build the entire project around the code you cloned from git as a template.

D++ Library version 10.0.31D++ Library version 10.0.30D++ Library version 10.0.29D++ Library version 10.0.28D++ Library version 10.0.27D++ Library version 10.0.26D++ Library version 10.0.25D++ Library version 10.0.24D++ Library version 10.0.23D++ Library version 10.0.22D++ Library version 10.0.21D++ Library version 10.0.20D++ Library version 10.0.19D++ Library version 10.0.18D++ Library version 10.0.17D++ Library version 10.0.16D++ Library version 10.0.15D++ Library version 10.0.14D++ Library version 10.0.13D++ Library version 10.0.12D++ Library version 10.0.11D++ Library version 10.0.10D++ Library version 10.0.9D++ Library version 10.0.8D++ Library version 10.0.7D++ Library version 10.0.6D++ Library version 10.0.5D++ Library version 10.0.4D++ Library version 10.0.3D++ Library version 10.0.2D++ Library version 10.0.1D++ Library version 10.0.0D++ Library version 9.0.19D++ Library version 9.0.18D++ Library version 9.0.17D++ Library version 9.0.16D++ Library version 9.0.15D++ Library version 9.0.14D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0