Change console application title!

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

Eg:

[sourcecode language=’cpp’]int main( int argc, char** argv)
{
     SetConsoleTitle(“Nibu’s console”);
return 0;
}[/sourcecode]

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:

[sourcecode language=’cpp’]// Change console title here
const int nNotUsed = SetConsoleTitle( “Nibu’s console”);

int main( int argc, char** argv)
{
    return 0;
}[/sourcecode]

Appreciate your comments...