[英]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. 我已经找到了适用于VS 2010和2008的此问题的答案,但不适用于2013。
EDIT: I am referring to the GUI window created by the application with DirectX. 编辑:我指的是使用DirectX的应用程序创建的GUI窗口。
If you're coding with the DirectX API, the title of the window should be passed to CreateWindowEx
. 如果您使用DirectX API进行编码,则窗口的标题应传递给
CreateWindowEx
。
CreateWindowEx(NULL,
name_of_win_class,
title_goes_here,
window_style,
x_pos,
win_wid,
win_hei,
parent_win,
menus,
app_handle,
mul_wins);
I figured it out. 我想到了。 The name was being read in from a .rc file!
正在从.rc文件中读取名称!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.