Skip to content

Instantly share code, notes, and snippets.

@msciotti
Created September 10, 2019 16:17
Show Gist options
  • Save msciotti/fb887fd62ffdac313c23b8d0a9a98006 to your computer and use it in GitHub Desktop.
Save msciotti/fb887fd62ffdac313c23b8d0a9a98006 to your computer and use it in GitHub Desktop.
  1. In your project folder, you'll want to make something like a "discord-files" folder, for organization. In that folder, copy all the .h and .cpp files from the zip

  2. You want to include all the header and source files respectively in your project

  1. In your project settings, you'll want to include discord_game_sdk.dll.lib as an additional dependency

  1. From there, you should be able to #include "discord-files/discord.h, or whatever the path to that header file is, and have access to the code.
@StupidRepo
Copy link

a

@jammerxd
Copy link

jammerxd commented Jan 8, 2022

How do I statically link without requiring discord_game_sdk.dll be distributed alongside the exe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment