Hi, I've been wondering if there's a function or procedure used to know the current video mode. An example of how this was done in Pascal:
1 2 3 4 5 6 7
function VideoMode : integer;
begin
if (lastmode = BW40) or (lastmode = BW80)
VideoMode := 40
else
VideoMode := 80;
end;
I've been told "conio.h" has a lastmode function, but it doesn't seem to be supported in Dev-C++ and Visual Studio C++. Is there a Windows function to know the number of columns in the current video mode? Thank you.