Thread: SetConsoleTextAttribute

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    932

    SetConsoleTextAttribute

    I want to alternate two SetConsoleTextAttribute() in a switch() statement.
    So i declared and assigned it outside main() as global and i want to switch between them like this bArg1 != bArg2;

    If i assign it to a bool ( can i? ) how should i call it then in the program?

    Like that? bArg1;

    Code:
    bool bArg1=  SetConsoleTextAttribute ( h, BACKGROUND_GREEN);
    Thanks in advance!
    Last edited by Ducky; 03-18-2009 at 10:37 PM.
    Using Windows 10 with Code Blocks and MingW.

Popular pages Recent additions subscribe to a feed