在 Visual Studio 2010 Professional 下为 C++ Windows 窗体应用程序更改启动窗体 [英] Change startup form under Visual Studio 2010 Professional for C++ Windows Form Application

查看:59
本文介绍了在 Visual Studio 2010 Professional 下为 C++ Windows 窗体应用程序更改启动窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某种原因,我似乎找不到一种方法来做到这一点:在 Visual Studio Professional 2010 下更改 C++ Windows 应用程序的启动形式.许多网站都建议进入 Project\properties\Application\startup来自等.我的问题是我在 Project\Properties 下的任何地方都找不到应用程序"或启动表单.

For some reason, I can't seem to find a way to do this: changing the start up form for C++ Windows Application under Visual Studio Professional 2010. As many websites have suggested that go into Project\properties\Application\startup from etc. My problem was that I could not find the "Application" or Startup Form anywhere under Project\Properties.

我错过了什么?

谢谢.

推荐答案

您使用的是 C++ IDE,它没有这些优点.您应该自己更改代码.在解决方案资源管理器窗口中双击与您的项目同名的 .cpp 文件.找到 main() 函数并更改 Application.Run() 调用:

You are using the C++ IDE, it doesn't have these kind of goodies. You are supposed to change the code yourself. Double-click the .cpp file that has the same name as your project in the Solution Explorer window. Locate the main() function and change the Application.Run() call:

// Create the main window and run it
Application::Run(gcnew Form1());    // Change "Form1" here

这篇关于在 Visual Studio 2010 Professional 下为 C++ Windows 窗体应用程序更改启动窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆