第一次开发简单的 Windows 应用程序需要什么 IDE?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/904592/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 12:32:11  来源:igfitidea点击:

What IDE is needed to develop a first time simple Windows application?

windowside

提问by mr-euro

I have never done any Windows coding and I would like to give it a try. To create a simple application e.g. a window that displays a plain "Hello World" message.

我从未做过任何 Windows 编码,我想尝试一下。创建一个简单的应用程序,例如一个显示简单“Hello World”消息的窗口。

What IDE (open source?) would I need to start of with and what language is used for the native Windows applications?

我需要从什么 IDE(开源?)开始,原生 Windows 应用程序使用什么语言?

This is not for professional use, just for an amateur.

这不适用于专业用途,仅供业余爱好者使用。

回答by Kris

I'd recommend going for Visual Studio Express, you can use c#, Visual Basic (VB.NET) or c++, it's free and easy. It also makes the step to the larger Visual Studio simple if you're ever going to do that.

我建议使用 Visual Studio Express,您可以使用 c#、Visual Basic (VB.NET) 或 c++,它是免费且简单的。如果您打算这样做的话,它还可以让您更轻松地迈向更大的 Visual Studio。

check out Microsoft Visual Studio Express

查看Microsoft Visual Studio Express

edit: added VB.NET

编辑:添加 VB.NET

Since i'm editing anyway, how about some additions; If you prefer opensource you could also look into SharpDevelop(c# and boo) and/or monodevelop(c#, but better for linux/multiplatform, not so great for just windows imho but yout mileage may vary)

由于我正在编辑,所以添加一些内容如何?如果您更喜欢开源,您还可以查看SharpDevelop(c# 和 boo)和/或monodevelop(c#,但对 linux/多平台更好,仅适用于 windows imho 不是很好,但您的里程可能会有所不同)

edit: 6 years later.

编辑:6年后。

Microsoft has, in the mean time, provided us with Visual Studio Community Edition, which is in essence a complete Visual Studio professional, but free (some restrictions do apply). I do believe this is now the absolute best way to develop most non commercial, and possibly some commercial, Windows oriented projects you can get.

同时,Microsoft 为我们提供了Visual Studio Community Edition,它本质上是一个完整的 Visual Studio 专业版,但免费(确实存在一些限制)。我确实相信这是现在开发大多数非商业项目的绝对最佳方式,并且可能是您可以获得的一些面向 Windows 的商业项目。

回答by Anh Do

Try either AutoItor AutoHotkey. I personally recommend AutoHotkey.

尝试AutoItAutoHotkey。我个人推荐 AutoHotkey。

For LOTS of sample (and useful!) scripts, visit this page: http://www.donationcoder.com/Software/Skrommel/

有关大量示例(和有用!)脚本,请访问此页面:http: //www.donationcoder.com/Software/Skrommel/

回答by Nir

There are a lot of IDEs out there, if you want to develop for windows I'd recommend .net and the free "express" series of Microsoft tools.

有很多 IDE,如果你想为 Windows 开发,我推荐 .net 和免费的“express”系列 Microsoft 工具。

回答by Vanuan

notepad + .NET Framework + cmd

记事本 + .NET Framework + cmd

type:

类型:

using System.Windows.Forms;
public class HelloWorld
{
     public static void Main()
     {
        MessageBox.Show("Hello, World!");
      }
}

save as %WINDIR%\Microsoft.NET\Framework\vX.X.XXXXX\hello.cs

另存为 %WINDIR%\Microsoft.NET\Framework\vX.X.XXXXX\hello.cs

open command line

打开命令行

cd %WINDIR%\Microsoft.NET\Framework\vX.X.XXXXX %homedrive%

cd %WINDIR%\Microsoft.NET\Framework\vX.X.XXXXX %homedrive%

compile:

编译:

csc /target:winexe hello.cs

csc /target:winexe hello.cs

run:

跑:

hello

你好

If you're looking for open source IDE I recommend Eclipse with plugins or MonoDevelop(wikipedia).

如果您正在寻找开源 IDE,我推荐带有插件的 Eclipse 或MonoDevelop维基百科)。

回答by Thies

You could look into VBScript, using notepad to edit the code. It is quite simple to program with, and there are a lot of examples.

您可以查看 VBScript,使用记事本编辑代码。使用它进行编程非常简单,并且有很多示例。

Hello World would be done by placing the following into a file called HelloWorld.vbs and double clicking it from an explorer window.

Hello World 将通过将以下内容放入名为 HelloWorld.vbs 的文件中并从资源管理器窗口双击它来完成。

MsgBox("Hello World")

A message box with hello world will then display.

然后将显示一个带有 hello world 的消息框。

回答by niteria

There is wxDev-Cpp IDE (google for it). It's great for small apps. It's based on wxWidgets, so you also get portability for free.

有 wxDev-Cpp IDE(谷歌搜索)。它非常适合小型应用程序。它基于 wxWidgets,因此您还可以免费获得可移植性。

回答by user71918

If you're looking for Open Source and cross platform compatibility I would look at Eclipse. However if you simply want "free" I would also look at IntelliJ IDE which is designed for JAVA development and is also cross platform but not Open Source. They offer some free licensed versions.

如果您正在寻找开源和跨平台兼容性,我会考虑 Eclipse。但是,如果您只是想要“免费”,我还会查看 IntelliJ IDE,它专为 JAVA 开发而设计,也是跨平台但不是开源的。他们提供一些免费的许可版本。

回答by Bayard Randel

If you're new to gui programming, Shoesis a fun way to pick up some of the concepts as well as learn some ruby along the way. It's primarily a learning tool however, so you'll need to eventually pick up Visual Studio (or something similar) when you're ready to develop a functional windows app.

如果您是 gui 编程的新手,Shoes是一种有趣的方式,可以学习一些概念并在此过程中学习一些 ruby​​。然而,它主要是一种学习工具,因此当您准备好开发功能性 Windows 应用程序时,您最终需要选择 Visual Studio(或类似的东西)。



Edit: I see you've done some programming in linux from one of your comments, so this might be a bit too rudimentary for you. For anyone new to programming and wanting to try their hand at a windows program, Shoes is worth looking at. The free version of Visual Studio is definitely what you'll want to check out, or alternatively you could continue to work in Eclipse on windows, as you're already familiar with it.

编辑:我从您的评论中看到您已经在 linux 中完成了一些编程,所以这对您来说可能有点太初级了。对于任何刚接触编程并想尝试使用 Windows 程序的人来说,Shoes 值得一看。Visual Studio 的免费版本绝对是您想要查看的,或者您可以继续在 Windows 上的 Eclipse 中工作,因为您已经熟悉它。

回答by hasen

You don't have to use an IDE to create a Hello World gui application.

您不必使用 IDE 来创建 Hello World gui 应用程序。

Libraries like Qt, wxWidgets, GTK+, etc, allow you to write such programs, and their tutorials usually have some sample "hello word" programs.

Qt、wxWidgets、GTK+ 等库允许您编写此类程序,它们的教程通常有一些示例“hello word”程序。

UPDATE

更新

I believe most GUI libraries (try to) maintain platform native look and feel; or at least that's what the docs say.

我相信大多数 GUI 库(尝试)维护平台原生外观;或者至少这是文档所说的。