Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // TestLoad.cpp : This file contains the 'main' function. Program execution begins and ends there.
- //
- #include "pch.h"
- #include <iostream>
- #include <windows.h>
- typedef bool(*testFunction)();
- testFunction dllFunction;
- int main()
- {
- HINSTANCE hDll = LoadLibraryA("DllMainTest.dll");
- if (hDll)
- {
- dllFunction = (testFunction)GetProcAddress(hDll, "example");
- dllFunction();
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment