TheDanman
TheDanman

Reputation: 98

How can I change the name of my C++ application in Visual Studio 2013 (The name that appears at the top of the window)?

I have tried changing the name of the active project, the solution, and the root directory of the project, but none of these affect the name that appears on the application window when I launch it. I have looked through the solution and project properties and haven't found a field that I can change.

I have found answers to this question that apply to VS 2010 and 2008 but they do not apply to 2013.

EDIT: I am referring to the GUI window created by the application with DirectX.

Upvotes: 1

Views: 766

Answers (2)

TheDanman
TheDanman

Reputation: 98

I figured it out. The name was being read in from a .rc file!

Upvotes: 0

geekybedouin
geekybedouin

Reputation: 559

If you're coding with the DirectX API, the title of the window should be passed toCreateWindowEx.

       CreateWindowEx(NULL,
                      name_of_win_class,    
                      title_goes_here,  
                      window_style,   
                      x_pos,   
                      win_wid,    
                      win_hei,    
                      parent_win,   
                      menus,    
                      app_handle,    
                      mul_wins);    

Upvotes: 1

Related Questions