'How to Set Console Buffer Size
I'm trying to change the size of the buffer in the windows console. I keep getting an error 87, which means a parameter is incorrect. I have a COORD, and a the correct handle. I don't know what's wrong.
#include <windows.h>
#include <iostream>
using namespace std;
int main() {
int i = SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE),{10,10});
int e = GetLastError();
cout << "hello" << endl;
cout << i << endl;
cout << e << endl;
cin.get();
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
