Im using code-blocks and can not figure out how to use gdi32.
This is my code for trying to draw a point at the users current location.
If there is a better way for this please tell me, I have tried to link the gdi32 lib in the complior settings but it does not work. I have tried many sultions but none seem to work
int progess = player.gameProgress;
int selection;
CONSOLE_SCREEN_BUFFER_INFO csbInfo;
SMALL_RECT screenPos;
HWND console = GetConsoleWindow();
HDC hdc = GetDC(console);
COLORREF color = RGB(255, 255, 255);
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
GetConsoleScreenBufferInfo(hConsole, &csbInfo);
screenPos = csbInfo.srWindow;
string titleString = "Developing " + player.gameName;
titleThing(titleString);
system("CLS");
drawSquare(screenPos.Right - screenPos.Left, screenPos.Bottom - screenPos.Top);
while(true){
POINT mousePos = cursorPostion();
SetPixel(hdc, mousePos.x, mousePos.y, color);
}
system("pause");
can someone help me with this