Sep 052007
 

It’s easy to change the title of a console application, just call SetConsoleTitle with the new title.

Eg:

int main( int argc, char** argv)
{
     SetConsoleTitle("Nibu's console");
     return 0;
}

Well now the title changes, but you can see the old title for a moment before it changes to the new one (well at least I saw ūüėČ ), we can fix¬†this problem¬†by calling SetConsoleTitle before main is invoked.

Eg:

// Change console title here
const int nNotUsed = SetConsoleTitle( "Nibu's console");

int main( int argc, char** argv)
{
     return 0;
}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.