What the Tech logo

What the Tech? It's as easy as 1,2,3! ( Log In | Register )

Easy as 1,2,3!
 
Reply to this topicStart new topic
> C++ - How to change cmd window title
bizarrebob
post Feb 24 2009, 12:58 PM
Post #1


Silver Member
Group Icon

Group: Tech Classroom
Posts: 360
Joined: 30-July 06
From: England, UK
Member No.: 59,214
Operating System: Windows 7



Hi all,

I'm a newbie to C++ but i've decided that my knowledge of Windows is good enough now to progress onto a new level, that being C++. I have written some really simple batch files with help from internet topics etc but i think with C++, i could grasp it with enough time & effort.

I tried the Hello World introduction and that's all good, and i did have a piece of code to change the TITLE window when the cmd window pops up. I've lost it and am basically asking if anyone knows what that may be?

Just for info, i've been using Bloodshed Dev-C++ v4.9.9.2


thanks,

Bob
Go to the top of the page
 
+Quote Post
jpshortstuff
post Feb 25 2009, 05:10 AM
Post #2


SuperHelper
Group Icon

Group: Classroom Teacher
Posts: 5,096
Joined: 28-April 07
From: UK
Member No.: 69,799
Operating System: Windows XP (Professional), Windows Vista (Home Business), Windows 7 (Ultimate), Ubuntu Linux



I'm not sure about a platform independent way of doing this, but if you are working solely on Windows then:
system("TITLE MyTitleText");
Should do the trick.

Hope that helps.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   2 Mrs. ReRe 112 11th November 2009 - 07:04 PM
Last post by: LDTate
No New Posts   3 zmcgill 104 25th October 2009 - 03:58 PM
Last post by: oldman960
No new   33 robe414 572 25th October 2009 - 12:36 AM
Last post by: noahdfear
No New Posts   1 hoon 167 24th October 2009 - 06:09 PM
Last post by: jephree

RSS Time is now: 21st November 2009 - 03:33 PM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.
Member site: Alliance of Security Analysis Professionals | UNITE Against Malware
Memory Forums | Auto Repair Forum
© Geeks to Go, Inc. | All Rights Reserved | Privacy Policy