J
Jerry chapman
Several years ago I wrote a console program in Visual C++, which I am still
using. In converting this program to C#, I have encountered the following
problems:
1. I build my console display in a back ground buffer and use the function
"SetConsoleActiveScreenBuffer(hForegroundBuffer)" to switch the console
display to the new buffer. I couldn't find a corresponding function in C#.
2. I use the function "SetConsoleCursorPosition(hForegroundBuffer,pos)" to
set the position of the cursor. Again, I couldn't find a corresponding
function in C#.
3. I display some lines of data in red and some in black, and use the
function "SetConsoleTextAttribute()" to accomplish that. Again, I couldn't
find a corresponding function in C#.
Perhaps the book I am using (Programming C#, by Jesse Liberty) is just
incomplete. If that is true, where can I find a more complete list of
functions available in C#?
using. In converting this program to C#, I have encountered the following
problems:
1. I build my console display in a back ground buffer and use the function
"SetConsoleActiveScreenBuffer(hForegroundBuffer)" to switch the console
display to the new buffer. I couldn't find a corresponding function in C#.
2. I use the function "SetConsoleCursorPosition(hForegroundBuffer,pos)" to
set the position of the cursor. Again, I couldn't find a corresponding
function in C#.
3. I display some lines of data in red and some in black, and use the
function "SetConsoleTextAttribute()" to accomplish that. Again, I couldn't
find a corresponding function in C#.
Perhaps the book I am using (Programming C#, by Jesse Liberty) is just
incomplete. If that is true, where can I find a more complete list of
functions available in C#?