Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <windows.h>
- int main()
- {
- SetConsoleOutputCP(1251);
- HWND hwnd = GetDesktopWindow();
- HDC dc = GetDC(hwnd);
- SelectObject(dc, GetStockObject(DC_BRUSH));
- TextOutA(dc, 1200, 200, "Hello!", 8);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement