I have that code. and I created this. but I want to compile it without any console window. and it gives me:
unresolved external symbol _main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)"
all subsystems changed to /SUBSYSTEM:WINDOWS*
long x;
long y;
#include <Windows.h>
float hz = rand() % 800; // input how many hertz you need
long marcos;
void drawSomething() {
marcos = 1000;
HDC hd = GetDC(NULL);
BitBlt(hd, 0, 0, 1000, 1000, hd, rand() % 3000 - rand() % 100, rand() % 3000 - rand() % 100, SRCCOPY);
StretchBlt(hd, 0, 0, rand() % 3000 - rand() % 100, rand() % 3000 - rand() % 100, hd, rand() % 3000 - rand() % 100, rand() % 3000 - rand() % 100, rand() % 3000 - rand() % 100, rand() % 3000 - rand() % 100, SRCCOPY);
}
int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, PSTR cmdline, int cmdshow) // oh shit of fu-
{
while (true) {
drawSomething();
}
return 0;
}