title image


Smiley Re: Warum geht hallo.c nicht?
Dazu bräuchtest Du GetStdHandle(Flags_welches_Handle) und kannst das mit diesem

Outputhandle setzen mittels:



BOOL SetConsoleTextAttribute(

HANDLE hConsoleOutput,

WORD wAttributes

);



wAttributes könnten folgende Konstante sein (auch verodert)



Character attributes can be divided into two classes: color and DBCS. The following attributes are defined in the Wincon.h header file.



Attribute Meaning

FOREGROUND_BLUE Text color contains blue.

FOREGROUND_GREEN Text color contains green.

FOREGROUND_RED Text color contains red.

FOREGROUND_INTENSITY Text color is intensified.

BACKGROUND_BLUE Background color contains blue.

BACKGROUND_GREEN Background color contains green.

BACKGROUND_RED Background color contains red.

BACKGROUND_INTENSITY Background color is intensified.

COMMON_LVB_LEADING_BYTE Leading byte.

COMMON_LVB_TRAILING_BYTE Trailing byte.

COMMON_LVB_GRID_HORIZONTAL Top horizontal.

COMMON_LVB_GRID_LVERTICAL Left vertical.

COMMON_LVB_GRID_RVERTICAL Right vertical.

COMMON_LVB_REVERSE_VIDEO Reverse foreground and background attributes.

COMMON_LVB_UNDERSCORE Underscore.



Den Handle auf die Standardoutput-console liefert dir StdIO nicht.


geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: