/dllhelper

How to GetProcAddress() like a boss 😎

Primary LanguageC++MIT LicenseMIT

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