Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.00 KB | None | 0 0
  1. asdf.cpp:10:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  2. char* GDI32 = "gdi32.dll";
  3. ^
  4. asdf.cpp:15:7: error: expected nested-name-specifier before 'SP_DT'
  5. using SP_DT = COLORREF(*)(HDC,int, int, COLORREF);
  6. ^
  7. asdf.cpp:16:7: error: expected nested-name-specifier before 'FC_DT'
  8. using FC_DT = BOOL(*)(HDC, int, int, COLORREF, UINT);
  9. ^
  10. asdf.cpp:18:35: error: 'SP_DT' does not name a type
  11. void drawPixel(const HWND&, const SP_DT, const int, const int, const COLORREF);
  12. ^
  13. asdf.cpp:19:49: error: 'FC_DT' does not name a type
  14. void clearScreen(const HWND&, const HDC&, const FC_DT, const int, const int, const COLORREF);
  15. ^
  16. asdf.cpp:20:6: error: 'setPixel' does not name a type
  17. auto setPixel = (SP_DT)loadDLLfunc(GDI32, "SetPixelV");
  18. ^
  19. asdf.cpp:21:6: error: 'fillScreen' does not name a type
  20. auto fillScreen = (FC_DT)loadDLLfunc(GDI32, "ExtFloodFill");
  21. ^
  22. asdf.cpp:24:7: error: expected nested-name-specifier before 'CD_DT'
  23. using CD_DT = HDC(*)(HDC); // CreateCompatibleDC
  24. ^
  25. asdf.cpp:25:7: error: expected nested-name-specifier before 'SO_DT'
  26. using SO_DT = HGDIOBJ(*)(HDC, HGDIOBJ); // SelectObject
  27. ^
  28. asdf.cpp:26:7: error: expected nested-name-specifier before 'GO_DT'
  29. using GO_DT = int(*)(HGDIOBJ, int, LPVOID); // GetObject
  30. ^
  31. asdf.cpp:27:7: error: expected nested-name-specifier before 'BB_DT'
  32. using BB_DT = BOOL(*)(HDC, int, int, int, int, HDC, int, int, DWORD); // BitBlt
  33. ^
  34. asdf.cpp:28:7: error: expected nested-name-specifier before 'DC_DT'
  35. using DC_DT = BOOL(*)(HDC); // DeleteDC
  36. ^
  37. asdf.cpp:29:7: error: expected nested-name-specifier before 'DO_DT'
  38. using DO_DT = BOOL(*)(HGDIOBJ); // DeleteObject
  39. ^
  40. asdf.cpp:32:6: error: 'createCompatibleDC' does not name a type
  41. auto createCompatibleDC = (CD_DT)loadDLLfunc(GDI32, "CreateCompatibleDC");
  42. ^
  43. asdf.cpp:33:6: error: 'selectObj' does not name a type
  44. auto selectObj = (SO_DT)loadDLLfunc(GDI32, "SelectObject");
  45. ^
  46. asdf.cpp:34:6: error: 'getObject' does not name a type
  47. auto getObject = (GO_DT)loadDLLfunc(GDI32, "GetObjectA");
  48. ^
  49. asdf.cpp:35:6: error: 'bitBlt' does not name a type
  50. auto bitBlt = (BB_DT)loadDLLfunc(GDI32, "BitBlt");
  51. ^
  52. asdf.cpp:36:6: error: 'deleteDC' does not name a type
  53. auto deleteDC = (DC_DT)loadDLLfunc(GDI32, "DeleteDC");
  54. ^
  55. asdf.cpp:37:6: error: 'deleteObject' does not name a type
  56. auto deleteObject = (DO_DT)loadDLLfunc(GDI32, "DeleteObject");
  57. ^
  58. asdf.cpp:53:40: error: 'SP_DT' does not name a type
  59. void drawPixel(const HWND& hwnd, const SP_DT setPixel, const int x, const int y, const COLORREF COLOR) {
  60. ^
  61. asdf.cpp: In function 'void drawPixel(HWND__* const&, int, int, int, COLORREF)':
  62. asdf.cpp:55:30: error: 'setPixel' cannot be used as a function
  63. setPixel(hdc, x, y, COLOR);
  64. ^
  65. asdf.cpp: At global scope:
  66. asdf.cpp:59:58: error: 'FC_DT' does not name a type
  67. void clearScreen(const HWND& hwnd, const HDC& hdc, const FC_DT fillScreen, const int x, const int y, const COLORREF COLOR) {
  68. ^
  69. asdf.cpp: In function 'void clearScreen(HWND__* const&, HDC__* const&, int, int, int, COLORREF)':
  70. asdf.cpp:60:50: error: 'fillScreen' cannot be used as a function
  71. fillScreen(hdc, x, y, COLOR, FLOODFILLSURFACE);
  72. ^
  73. asdf.cpp: In function 'void loadImagery()':
  74. asdf.cpp:73:40: error: 'createCompatibleDC' was not declared in this scope
  75. HDC hMemDC = createCompatibleDC(hdc);
  76. ^
  77. asdf.cpp:74:27: error: 'selectObj' was not declared in this scope
  78. selectObj(hMemDC, hBmp);
  79. ^
  80. asdf.cpp:77:41: error: 'getObject' was not declared in this scope
  81. getObject(hBmp, sizeof(BITMAP), &bmp);
  82. ^
  83. asdf.cpp:79:71: error: 'bitBlt' was not declared in this scope
  84. bitBlt(hdc, 0, 0, bmp.bmWidth, bmp.bmHeight, hMemDC, 0, 0, SRCCOPY);
  85. ^
  86. asdf.cpp:81:20: error: 'deleteDC' was not declared in this scope
  87. deleteDC(hMemDC);
  88. ^
  89. asdf.cpp:82:22: error: 'deleteObject' was not declared in this scope
  90. deleteObject(hBmp);
  91. ^
  92. asdf.cpp: In function 'int main()':
  93. asdf.cpp:92:16: error: 'nullptr' was not declared in this scope
  94. srand(time(nullptr));
  95. ^
  96. asdf.cpp:94:9: error: 'setPixel' was not declared in this scope
  97. if (setPixel == NULL) {
  98. ^
  99. asdf.cpp:108:25: error: 'setPixel' was not declared in this scope
  100. drawPixel(hwnd, setPixel, amp + freq * cos(i), x, greenColor);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement