Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <Windows.h>
- typedef int (__stdcall *inits)(void);
- void loader()
- {
- inits Initialize;
- static HINSTANCE hinstDLL;
- hinstDLL = LoadLibrary(TEXT("C:\\Files\\Programming\\win32\\dll\\Release\\dll.dll"));
- Initialize = (inits)GetProcAddress(hinstDLL, "Initialize");
- Initialize();
- }
- int _tmain(int argc, _TCHAR* argv[])
- {
- loader();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment