How to GetProcAddress() like a boss 😎
C++ C CMake
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CMakeLists.txt
LICENSE.md
README.md
dllhelper.hpp
example.c
example.cpp

README.md

How to GetProcAddress like a boss 😎

Demonstrates how to leverage modern C++ features to simplify manual DLL linking.

class ShellApi {
  DllHelper _dll{"Shell32.dll"};

public:
  decltype(ShellAboutA) *shellAbout = _dll["ShellAboutA"];
};

int main() {
  ShellApi shellApi;
  shellApi.shellAbout(NULL, "hello", "world", NULL);
}

See blog post