SetConsoleCursorPosition() failed! Reason :87
What does the error code 87 try to tell.......
Last edited on
Is it illegal to do the following:
#include <iostream>
#include <windows.h>
int main()
{
HANDLE hOut;
CONSOLE_SCREEN_BUFFER_INFO SBInfo;
COORD S;
S=SBInfo.dwSize;
S.X--;
S.Y--;
SetConsoleCursorPosition(hOut,S);
cout <<"Hello";
return 0;
}
Last edited on
My idea is to set the coordinates according to the size of the buffer........
Tell me an alternative if what i have done is illegal..............
Last edited on