etoprostoya
Posts: 1809
|
Примерчик.
Code:
AllocConsole();
DWORD Written;
char Buffer[256];
HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO BufferInfo;
GetConsoleScreenBufferInfo( hOutput, &BufferInfo );
//SetConsoleTextAttribute( hOutput, (WORD)WHITE );
WriteConsole( hOutput, "Консоль открыта\n", 11, &Written, NULL );
//SetConsoleTextAttribute( hOutput, (WORD)Color16bit );
WriteConsole( hOutput, Buffer, strlen(Buffer), &Written, NULL );
SetConsoleTextAttribute( hOutput, BufferInfo.wAttributes );
|
|
19.11.2011 21:33 |
|