全面的初学者教程如何编写Windows GUI程序 [英] Comprehensive tutorial for beginners on how to write Windows GUI programs

查看:678
本文介绍了全面的初学者教程如何编写Windows GUI程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图学习如何使用Visual Studio 2008在C ++中编写Windows GUI *程序,但我还没有为初学者找到更全面的教程。

I'm trying to learn how to write Windows GUI* programs in C++, using Visual Studio 2008, but I haven't found any more comprehensive tutorial for beginners.

更全面的教程我发现只是关于如何使按钮,菜单等或者只有如何编写基本的C ++控制台程序。

The more comprehensive tutorials I have found are either only about how to make buttons, menus, etc. OR only about how to write basic C++ console programs.

没有找到是一个更全面的教程,初学者如何结合按钮,菜单等与C ++代码。

What I haven't found is a more comprehensive tutorial for beginners on how to combine buttons, menus, etc. with C++ code.

换句话说,我在寻找答案问题:如何将菜单,按钮等链接到C ++代码?

In other words, I'm looking for answers to the question: How do I link menus, buttons etc. to C++ code?

如果您知道我可以在哪里找到该问题的答案,请在这里发布。

If you know where I can find answers to that question, post them here, please!

注意:图形用户界面(GUI):包括诸如图标,面板和交互式窗口等内容,以使用户能够执行打开文件和创建应用程序点击鼠标( intoweb.co.za/et-linux-tips.html)。

Note: "Graphical User Interface (GUI): Includes such things as icons, panels, and interactive windows, to enable users to perform such actions as opening files and creating applications with the click of the mouse" (intoweb.co.za/et-linux-tips.html).

我目前正在阅读C#教程 techotopia.com ,似乎不仅包括C#的基础,但也包括如何使用C#获取按钮,菜单的有用的信息。等等实际做某事。我只是开始阅读教程,但是,实际上是多么有用,我还不知道。

I'm currently reading a C# tutorial at techotopia.com, that seems to include not only C# basics but also useful information on how to use C# to get buttons, menus. etc. to actually do something. I only started reading the tutorial, though, so how useful it actually is I don't know yet.

我现在已经阅读了 techotopia.com ,并学习了一些基本的事实,如何实际使窗口窗体上做控制做某事。如果我知道我现在知道的C#早,我很可能会选择在我开始学习C ++之前学习这种语言。

I've now finished reading the C# tutorial at techotopia.com and learned some basic facts about how to actually make controls on a windows form do something. Had I known what I now know about C# earlier, I most likely would have chosen to learn that language before I started learning C++.

这是超越我为什么每个C ++针对初学者的GUI程序教程的编写风格与 techotopia.com 上的教程相同。我看到没有理由为什么C ++ GUI程序教程为初学者不能两个挤满了基本事实,解释甚至最简单的事情给像我这样的人,需要这样的解释来理解一个新的主题。

It's beyond me why each and every C++ GUI programs tutorial for beginners aren't written in the same style as the tutorials at techotopia.com. I see no reason why C++ GUI programs tutorials for beginners can't be both crammed with basic facts AND explain even the simplest things to people like me, that need such explanations to understand a new subject. Well, there probably are such tuturials, only I haven't found them.

现在是时候,我认为,简要地列出我为了一般计算机技能和特别是编写计算机程序的能力而采取的措施。我在这里列出的名单,为那些想要善于编写计算机程序,但不知道如何达到这个目标或误导自己,我有一次又一次的人的利益。这不是任何方式的最终名单。

Now is the time, I think, to make a short list of what steps I have taken to get where I am today when it comes to computer skills in general and ability to write computer programs in particular. I'm posting the list here for the benefit of people who wants to become good at writing computer programs but don't know how to reach that goal or have mislead themselves, as I have time and time again. It's not a final list in any way. It's just a short account of what have worked for me.

步骤1.使用大量的计算机程序(文字处理器,图像编辑器和你感兴趣的东西)以了解可以用计算机做什么。

Step 1. Use lots of computer programs (word processors, image editors and what else you're interested in) to see what can be done with a computer.

步骤2.使用HTML和CSS编写网页。 HTML,超文本标记语言,用于告诉浏览器诸如段落的开始和结束,表的结构和包含图像的位置。 CSS,级联样式表,用于向网页添加文本大小和背景颜色等内容。

Step 2. Write web pages with HTML and CSS. HTML, Hypertext Markupup Language, are used to tell browsers things like the beginning and end of paragraphs, the structure of tables and where to include images. CSS, Cascading Style Sheets, are used to add things like text-size and background-color to web pages.

第3步使用PHP改进您的网页。 PHP,超文本预处理器,提醒C#和C ++,是一个服务器端脚本语言。服务器端意味着在网页发送到访问者的浏览器之前,对网页进行了某些操作,例如添加可以发送邮件的代码。 PHP比C#和C ++更容易为初学者。此外,如果您已经编写了一些HTML页面,可以逐步向这些页面添加PHP。换句话说,您可以在熟悉的语境中学习如何使用PHP。

Step 3. Improve your web pages with PHP. PHP, Hypertext Preprocessor, reminds of C# and C++ and is a server-side scripting language. Server-side means that something is done to a web page before it is sent to a visitor's browser, like adding code that makes it possible to send a message. PHP is easier for a beginner than C# and C++. Also, if you have written some HTML pages, you can gradually add PHP to these pages. In other words, you can learn how to use PHP in a familiar context.

步骤4.学习C#。提醒PHP和C ++。对于初学者来说比PHP更困难,但比C ++容易。这是我现在在哪里。这些链接可能至少有一些用途:

Step 4. Learn C#. Reminds of PHP and C++. More difficult for a beginner than PHP but easier than C++. This is where I am right now. These links may be of at least some use:

  • Quick And Dirty Guide To Migrating PHP Code To C#
  • C# Station C# Tutorial on how to write console programs
  • dotnetperls.com
  • George Shepherd's Windows Forms FAQ
  • C# Corner
  • csharp-examples.net/examples (very short code snippets)
  • Visual C# at msdn.microsoft.com (probably more useful when you're no longer an absolute beginner; at least I think so)
  • Some basic C# tutorials (written by me and not amongst the best tutorials you can find; however, I would have found a page similar to this one useful when I first started learning C#)

步骤5.学习C ++。提醒PHP和C#。对于初学者来说比PHP和C#更难。允许程序员控制多于C#。有些人说它比C#更快,而其他人没有。这是我希望会在一年左右的时间。

Step 5. Learn C++. Reminds of PHP and C#. More difficult for a beginner than PHP and C#. Allows the programmer to control more than C#. Some people say it's faster than C#, while other people don't. This is where I hopefully will be within a year or so.

由于有很多道路,有萌芽的程序员,这些步骤可能不适合你。然而,希望上面的列表至少对你有帮助,当你决定采取什么步骤,以达到你的目标。

Since there are as many roads as there are budding programmers, these steps may not be right for you. Hopefully, though, the list above is of at least some assistence to you when you decide what steps to take to reach your goal.

如果你知道更多关于编程比我做和不同意上面的列表,随时提供您自己的列表。

If you know more about programming than I do and disagree with the list above, feel free to provide your own list. If you do, I think you should also explain why you think your list is better.

推荐答案

Charles Petzold写了一本关于这本书的书。

Charles Petzold wrote a book on that.

我没有读过它,但他的Win32 UI书被广为人知的热闹,所以它预计对初学者是有好处的。

I haven't read it, but his Win32 UI book is widely known as hilarious, so it is expected to be good for beginners.

这篇关于全面的初学者教程如何编写Windows GUI程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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