Guest User

Untitled

a guest
Jan 22nd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. // TestLoad.cpp : This file contains the 'main' function. Program execution begins and ends there.
  2. //
  3.  
  4. #include "pch.h"
  5. #include <iostream>
  6.  
  7. #include <windows.h>
  8.  
  9. typedef bool(*testFunction)();
  10.  
  11. testFunction dllFunction;
  12.  
  13. int main()
  14. {
  15.  
  16. HINSTANCE hDll = LoadLibraryA("DllMainTest.dll");
  17. if (hDll)
  18. {
  19. dllFunction = (testFunction)GetProcAddress(hDll, "example");
  20. dllFunction();
  21. }
  22.  
  23. return 0;
  24. }
Add Comment
Please, Sign In to add comment