Guest User

Untitled

a guest
Sep 25th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Error LNK2019 unresolved external symbol "public: void __thiscall dt::move(int)" (?move@dt@@QAEXH@Z) referenced in function _WinMain@16
  2.  
  3. #include <Windows.h>
  4. #include "Graphics.h"
  5. #include "ResourseDll.h"
  6.  
  7. int CALLBACK WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, LPSTR lCmdLine, int nCmdShow)
  8. {
  9. Graphics* core=0;
  10. core = new Graphics;
  11. if (!core)
  12. {
  13. return 0;
  14. }
  15. core->Initialize(hInstance);
  16. dt bx;
  17. bx.a = 4;
  18. bx.move(54);
  19.  
  20. if (core)
  21. {
  22. delete core;
  23. core = 0;
  24. }
  25. }
  26.  
  27. ResourseDll.h
  28. #pragma once
  29.  
  30. class dt {
  31. public:
  32. int a;
  33. __declspec(dllexport) void move(int b);
  34. };
  35.  
  36. ResourseDll.cpp
  37. #include "stdafx.h"
  38. #include "ResourseDll.h"
  39.  
  40. void dt::move(int b)
  41. {
  42. a++;
  43. }
Add Comment
Please, Sign In to add comment