VC-SDK road News (preliminary knowledge and concepts)

Source: Internet
Author: User
Lecture 1: Introduction to preparatory knowledge and concepts

Note:I wrote this topic to provide a way of thinking for beginners of VC. I am very fond of it, but I think it may be helpful for beginners of VC. Of course, for winsdk programming, I just got in touch with it. If you are familiar with winsdk programming, please contact me and let us work together to complete this topic. If you find any errors, please leave a message to me to correct them. The content I wrote is basically some of my own understandings, and there are certainly some errors. If you find that my understanding is very biased, please remind me. --- Xiao Zhu!

What is winsdk:

Generally speaking, there are two methods for Windows Programming: 1. windwos C (SDK) and 2.c++: Pack SDK functions, such as vc mfc and BCB owl. If you want to go deeper, you must be familiar with the SDK.

What are the differences between the two methods? SDK programming is to directly call windows APIs for programming, but there are thousands of APIS (more than two thousand Win95 APIs), which is too large, obviously not good for programming. While, MFC closed these APIs and consisted of over one hundred classes. Generally, you only need more than 20 windows classes and more than 20 general non-Windows classes to "work". This change is undoubtedly very beneficial. Despite the convenience of MFC, it is unwise to learn VC directly. It is possible to go deeper only when you are familiar with the running mechanism of MFC. Books such as the number of days proficient in what are actually about topics such as how to use the VC tool, learn to learn how to use the VC tool, rather than in-depth MFC programming. Tools like VB are even more boring, but each has its own advantages.

Although MFC has improvedProgramProgramming efficiency, but it also loses the flexibility of SDK programming... Sorry, I ran the question ....

This topic assumes that:

C language is the source language of windows. It is most suitable to use C for SDK programming. You should have at least learned C language and various syntaxes of C language. When talking about similar concepts such as pointers, you will not be confused.

You should have installed visual c ++ 6.0. You don't need to use the earlier version. Is it just a few dollars for the dversion?

Recommendations and references:

1. petzold's [programming windows by Petzold], this is a book I have read (e-books), but I only read half of it, and the "Download space" column can provide this e-book. The Chinese version is [windows programming] (including the upper and lower volumes), translated by Charles Petzold, Beijing BoYan Development Co., Ltd., published by Peking University Press. The only drawback of this book is that it is too expensive, the price is 160 yuan. Some of my friends asked me to recommend more books in this area, and I couldn't help either. First, there are very few such books at the moment. Second, if you have to buy this book, you must buy it, but it's classic !!

2. Another old book is worth mentioning. It may not be available on the market. Its title is [windows programming], published by Liu zhenan and published by People's post and telecommunications Publishing House. A friend once lent me a few days and I paid it back again. It's easy to understand, but I have to read the date, published in 95 years! No hope. Our school library seems to have a few books, but it seems to be very bad.

3. The online help msdn of VC. the SDK information is in the "Platform SDK" column.

The following concepts are further deepened: What is API:

What is API? Let's talk about it again, especially for friends who come from TC and new programmers. API, which is short for application program interface, refers to the Application Programming Interface (speaking of API, not just windows, but Windows supports winapi ). Winapi is a programming interface for communication between applications and windows. Windows provides thousands of API functions to help programmers write applications. Database management systems seldom deal with APIs. I used to learn Pb and read more than a dozen books without specific chapters to introduce APIs. Only those petabytes of skills can be viewed online.ArticleBut we need to add a lot of declarations and other things. It seems that the same is true for VB. In short, the API is essential for system programming. API is a must for every VC master.

What is winsdk programming:

Winsdk programming is an API-based Windows programming. SDK, which is the software development kit. It was a software package that programmers had to purchase in the early days of Windows Programming Design (I don't know if there was a version d at that time ). I saw that the SDK was still on the cloud two months ago. It is best to start winsdk programming in C language. You can familiarize yourself with Win32 programming ideas and understand the message running mechanism of windows with the c ++ features. After learning about this, we will gradually turn to C ++ and MFC programming. However, in my opinion, winsdk programming will always go on slowly, directly accessing the underlying layer.CodeThe understanding of the MFC source code is very beneficial. When we started using MFC last week, we followed F11 in a single step. We didn't feel too confused when we first saw "_ twinmain, isn't it equivalent to the winmain function in SDK programming?

What is MFC:

The full name of MFC is Microsoft Foundation classes. The pseudo-soft class library encapsulates winapi. It is a collection of classes. By overwriting winapi, it provides an object-oriented interface for programming. It enables Windows programmers to program by using the features of C ++ surface image objects, similar to the BCB owl and Delphi VCL components. It provides the most tedious parts of SDK programming to programmers, so that they focus on the implementation of functions. Think of it as a function library similar to that provided by TC. When programming with a development tool such as Visual C ++, you can use MFC or not, but MFC is the essence of VC. In a sense, no MFC means no VC. Research on MFCSource codeIt is a happy and painful thing. However, after the pain ,......

How to program winsdk:

Visual c ++ 6.0: file --> New --> projects --> Win32 application (project name) --> ......

Since we use the C language, select the first "An Empty Project "......

...... I'm so tired. I 'd like to write so much about this article. I hope it will be helpful to you and I suggest you give me more comments. Your feedback is my biggest motivation ......

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.