简体   繁体   English

用C ++为Windows创建一个简单的程序。 如何建立GUI

[英]Creating a simple program in C++ for windows. How to build GUI

For a school project, we need to create a fairly simple app using C++ and .NET framework. 对于学校项目,我们需要使用C ++和.NET框架创建一个相当简单的应用程序。 I only know C++, but we need to produce a working executable file for the project. 我只知道C ++,但是我们需要为该项目生成一个有效的可执行文件。 The prof said we can use WYSIWYG editors for the GUI, but i can't seem to find one in Visual C++. 教授说我们可以使用所见即所得的GUI编辑器,但是我似乎在Visual C ++中找不到一个。 I wanted to code with Visual C++ since i want to learn about Visual Studio. 我想用Visual C ++进行编码,因为我想了解Visual Studio。

Is there a way I can use a GUI builder application for C++ and somehow connect it with my project in Visual C++? 有没有一种方法可以将GUI生成器应用程序用于C ++,并以某种方式将其与Visual C ++中的项目连接?

I'm very new to .NET and have spent the past 3 hours reading about .NET and the developer tools and what not, and i'm kinda lost.. 我是.NET的新手,并且花了过去3个小时来阅读有关.NET和开发人员工具以及其他方面的知识,我有点迷失了。

1) Download Visual C++ 2008 Express for free here 1) 在此处免费下载Visual C++ 2008 Express

2) Go to File->New->Windows Form Application . 2)转到File->New->Windows Form Application

Done! 完成! You got the WYSIWYG editors for the GUI. 您已获得GUI的WYSIWYG编辑器。

Hope it helps Max 希望对Max有帮助

I use wxWidgets and wxFrameBuilder for my GUI. 我将wxWidgets和wxFrameBuilder用于我的GUI。 It does not require ".NET", but that's what I like about it. 它不需要“ .NET”,但这就是我喜欢的。 :-) :-)

wxFrameBuilder is a tool that helps you create the GUI layout. wxFrameBuilder是可帮助您创建GUI布局的工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM