954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Change Title

Well when I run my program the bar at the top says C:\programing\C++\Test\Test.exe (<

Zssffssz
Junior Poster
180 posts since Sep 2011
Reputation Points: 6
Solved Threads: 2
 

Try checking out the functions

NathanOliver
Veteran Poster
1,084 posts since Apr 2009
Reputation Points: 215
Solved Threads: 189
 

I understand about 9^-100000000 of windows.h could you at least tell me which 100 or so lines it is in?

Zssffssz
Junior Poster
180 posts since Sep 2011
Reputation Points: 6
Solved Threads: 2
 

try this:

#include <windows.h>

//Declare a 'handle' type object
HANDLE console_handle;

//Get the 'handle' of the console window
console_handle = GetStdHandle(STD_OUTPUT_HANDLE);

//Change the title bar text
SetWindowText(console_handle, "I want to be the very best.");


Here is a reference for the SetWindowText() function.

Here is a reference for using basic windows functions in the DOS environment.

Clinton Portis
Practically a Posting Shark
833 posts since Oct 2005
Reputation Points: 237
Solved Threads: 118
 

I thought this was cool so I put it in my code. For me, console_handle is in red. Error: argument of type "HANDLE" is incompatible with parameter of type "HWND"

Zvjezdan23
Junior Poster
154 posts since Dec 2010
Reputation Points: -3
Solved Threads: 5
 

btw if you do #include

Zvjezdan23
Junior Poster
154 posts since Dec 2010
Reputation Points: -3
Solved Threads: 5
 

#include

Zvjezdan23
Junior Poster
154 posts since Dec 2010
Reputation Points: -3
Solved Threads: 5
 

Exactaly how many lines of code are in windows.h man? And totAly worked will this work on Linux?

Zssffssz
Junior Poster
180 posts since Sep 2011
Reputation Points: 6
Solved Threads: 2
 

No the functions in windows.h are for machines running a windows OS only.

NathanOliver
Veteran Poster
1,084 posts since Apr 2009
Reputation Points: 215
Solved Threads: 189
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: