Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- asdf.cpp:10:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
- char* GDI32 = "gdi32.dll";
- ^
- asdf.cpp:15:7: error: expected nested-name-specifier before 'SP_DT'
- using SP_DT = COLORREF(*)(HDC,int, int, COLORREF);
- ^
- asdf.cpp:16:7: error: expected nested-name-specifier before 'FC_DT'
- using FC_DT = BOOL(*)(HDC, int, int, COLORREF, UINT);
- ^
- asdf.cpp:18:35: error: 'SP_DT' does not name a type
- void drawPixel(const HWND&, const SP_DT, const int, const int, const COLORREF);
- ^
- asdf.cpp:19:49: error: 'FC_DT' does not name a type
- void clearScreen(const HWND&, const HDC&, const FC_DT, const int, const int, const COLORREF);
- ^
- asdf.cpp:20:6: error: 'setPixel' does not name a type
- auto setPixel = (SP_DT)loadDLLfunc(GDI32, "SetPixelV");
- ^
- asdf.cpp:21:6: error: 'fillScreen' does not name a type
- auto fillScreen = (FC_DT)loadDLLfunc(GDI32, "ExtFloodFill");
- ^
- asdf.cpp:24:7: error: expected nested-name-specifier before 'CD_DT'
- using CD_DT = HDC(*)(HDC); // CreateCompatibleDC
- ^
- asdf.cpp:25:7: error: expected nested-name-specifier before 'SO_DT'
- using SO_DT = HGDIOBJ(*)(HDC, HGDIOBJ); // SelectObject
- ^
- asdf.cpp:26:7: error: expected nested-name-specifier before 'GO_DT'
- using GO_DT = int(*)(HGDIOBJ, int, LPVOID); // GetObject
- ^
- asdf.cpp:27:7: error: expected nested-name-specifier before 'BB_DT'
- using BB_DT = BOOL(*)(HDC, int, int, int, int, HDC, int, int, DWORD); // BitBlt
- ^
- asdf.cpp:28:7: error: expected nested-name-specifier before 'DC_DT'
- using DC_DT = BOOL(*)(HDC); // DeleteDC
- ^
- asdf.cpp:29:7: error: expected nested-name-specifier before 'DO_DT'
- using DO_DT = BOOL(*)(HGDIOBJ); // DeleteObject
- ^
- asdf.cpp:32:6: error: 'createCompatibleDC' does not name a type
- auto createCompatibleDC = (CD_DT)loadDLLfunc(GDI32, "CreateCompatibleDC");
- ^
- asdf.cpp:33:6: error: 'selectObj' does not name a type
- auto selectObj = (SO_DT)loadDLLfunc(GDI32, "SelectObject");
- ^
- asdf.cpp:34:6: error: 'getObject' does not name a type
- auto getObject = (GO_DT)loadDLLfunc(GDI32, "GetObjectA");
- ^
- asdf.cpp:35:6: error: 'bitBlt' does not name a type
- auto bitBlt = (BB_DT)loadDLLfunc(GDI32, "BitBlt");
- ^
- asdf.cpp:36:6: error: 'deleteDC' does not name a type
- auto deleteDC = (DC_DT)loadDLLfunc(GDI32, "DeleteDC");
- ^
- asdf.cpp:37:6: error: 'deleteObject' does not name a type
- auto deleteObject = (DO_DT)loadDLLfunc(GDI32, "DeleteObject");
- ^
- asdf.cpp:53:40: error: 'SP_DT' does not name a type
- void drawPixel(const HWND& hwnd, const SP_DT setPixel, const int x, const int y, const COLORREF COLOR) {
- ^
- asdf.cpp: In function 'void drawPixel(HWND__* const&, int, int, int, COLORREF)':
- asdf.cpp:55:30: error: 'setPixel' cannot be used as a function
- setPixel(hdc, x, y, COLOR);
- ^
- asdf.cpp: At global scope:
- asdf.cpp:59:58: error: 'FC_DT' does not name a type
- void clearScreen(const HWND& hwnd, const HDC& hdc, const FC_DT fillScreen, const int x, const int y, const COLORREF COLOR) {
- ^
- asdf.cpp: In function 'void clearScreen(HWND__* const&, HDC__* const&, int, int, int, COLORREF)':
- asdf.cpp:60:50: error: 'fillScreen' cannot be used as a function
- fillScreen(hdc, x, y, COLOR, FLOODFILLSURFACE);
- ^
- asdf.cpp: In function 'void loadImagery()':
- asdf.cpp:73:40: error: 'createCompatibleDC' was not declared in this scope
- HDC hMemDC = createCompatibleDC(hdc);
- ^
- asdf.cpp:74:27: error: 'selectObj' was not declared in this scope
- selectObj(hMemDC, hBmp);
- ^
- asdf.cpp:77:41: error: 'getObject' was not declared in this scope
- getObject(hBmp, sizeof(BITMAP), &bmp);
- ^
- asdf.cpp:79:71: error: 'bitBlt' was not declared in this scope
- bitBlt(hdc, 0, 0, bmp.bmWidth, bmp.bmHeight, hMemDC, 0, 0, SRCCOPY);
- ^
- asdf.cpp:81:20: error: 'deleteDC' was not declared in this scope
- deleteDC(hMemDC);
- ^
- asdf.cpp:82:22: error: 'deleteObject' was not declared in this scope
- deleteObject(hBmp);
- ^
- asdf.cpp: In function 'int main()':
- asdf.cpp:92:16: error: 'nullptr' was not declared in this scope
- srand(time(nullptr));
- ^
- asdf.cpp:94:9: error: 'setPixel' was not declared in this scope
- if (setPixel == NULL) {
- ^
- asdf.cpp:108:25: error: 'setPixel' was not declared in this scope
- drawPixel(hwnd, setPixel, amp + freq * cos(i), x, greenColor);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement