如何在 Windows 中开始编程? [英] How to start programming in Windows?

查看:34
本文介绍了如何在 Windows 中开始编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用简单的编译器用 C 和 C++ 编写了简单的程序(在大学里学过;我是统计学专业的学生).我也是业余 PHP 程序员.现在我想开始为 Windows 编程.

I've made simple programs in C and C++ with simple compilers (learned it in university; I'm Statistics student). Also I'm amateur PHP programer. Now I want to start programming for Windows.

  • 带有用户界面的应用
  • 没有用户界面的应用

我的目的只是看看它是如何完成的.我可能会制作一个与 Web 服务器中的数据库交互的基本应用.

My aim is just to see how it is done. And I might make a basic app that interacts with a database which is in a web server.

我应该从哪里开始?视窗视觉工作室?.网?我应该知道什么?

Where should I start? Windows Visual Studio? .NET? What should I know?

推荐答案

如果您真的想学习底层 API,那么您应该从没有框架的情况下开始.

If you actually want to learn the underlying API then you should start off without one of the frameworks.

通过 Charles Petzold 的《Windows 编程》一书,按照我们多年前的做法学习它.了解窗口和消息如何工作的基础知识将为您提供良好的服务.

Learn it the way we did it all those years ago with Charles Petzold's book, Programming Windows. A really good foundation of knowledge of how windows and messages work will serve you well.

从长远来看,一个好的框架,例如WinForms、Qt、VCL 等将提高生产力.但是,如果您从其中一个开始,那么您就有可能不知道已发送消息和排队消息之间的区别,也不知道 HWNDHDC 和一个 HANDLE,等等.

In the longer term, a good framework, e.g. WinForms, Qt, VCL etc. will increase productivity. But if you start with one of them, then you are in danger of not knowing the difference between sent and queued messages, not knowing the difference between an HWND, an HDC and a HANDLE, and so on.

一个好的框架很棒,但如果您了解其背后的内容,您就会从中获得更多.

A good framework, is great, but you'll get more out of it if you understand what's underneath it.

这篇关于如何在 Windows 中开始编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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