Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. // testlib1.cpp : définit le point d'entrée pour l'application console.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <stdio.h>
  6. #include <windows.h>
  7.  
  8.  
  9.  
  10. #pragma comment (lib, "createmarker.lib")
  11. //extern "C" __declspec(dllimport) int createOneMarker(char *VCID_in);
  12.  
  13.  
  14. int _tmain(int argc, _TCHAR* argv[])
  15. {
  16. typedef int (*PFUNC)(char*);
  17. HMODULE monModule = LoadLibrary("createmarker.dll");
  18.  
  19. PFUNC pFunc = (PFUNC)GetProcAddress(monModule, "createOneMarker");
  20. pFunc("98385faf-7918-46d2-a663-4cc19e7f68cc");
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement