Guest User

Untitled

a guest
Jun 21st, 2010
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1.  
  2. #include "stdafx.h"
  3. #include <Windows.h>
  4. typedef int (__stdcall *inits)(void);
  5. void loader()
  6. {
  7.     inits Initialize;
  8.     static HINSTANCE hinstDLL;
  9.  
  10.     hinstDLL = LoadLibrary(TEXT("C:\\Files\\Programming\\win32\\dll\\Release\\dll.dll"));
  11.     Initialize = (inits)GetProcAddress(hinstDLL, "Initialize");
  12.     Initialize();
  13. }
  14.  
  15. int _tmain(int argc, _TCHAR* argv[])
  16. {
  17.     loader();
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment