Tsinghua University Press _ windows programming _ Fang min _ deficiency _ 2

Source: Internet
Author: User

I wrote a text about this book, which attracted the attention of many people in the garden, and many people have more or less opinions on the books published today.

There are both good and bad ones. In general, I still hope that the Chinese translation circle, publishing circle, author circle, and editing circle will still take the book well.

First of all, it is not a joke to publish a book. When a book is published, it has a great impact on the readers, and some may even affect their life. Therefore, we still hope that this circle will not

There must be too much utility; the book should be published on the path of contemporary success and success. Now we can see many successes on the market.InspirationalClass books, all said

It's nonsense, it's all eye-catching, and it's just a rush for profit.

This reminds me of the African nation in "God is crazy". Why is it not developing? It is also related to the inheritance of texts.

Without the inheritance of texts, a lot of cultural knowledge can't be continued; if you forget it, you won't say much.

 

The following describes the shortcomings in Chapter 3:

Exp1: technical error

40 pages

At 40ProgramTwo messages are used in the instance: mwm_paint and mwm_destroy. Obviously, this is incorrect because

A message starting with mwm _ prefix.

If the translator has to customize the macros, then I cannot. Who are the translators who have too much time? But isn't that totally different from the original ...............

 

Exp2: technical error

44 pages

 
"Both identifiers are defined as _ stdcall, which specifies the specific sequence of function calls between windows and applications ".

Obviously, this is a known error, because _ stdcall does not specify the specific sequence of function calls between windows and applications; windows and Applications

The call relationship between programs is not specified by _ stdcall. _ stdcall specifies the pressure stack sequence during parameter transfer, just like Pascal in Pascal.

Call conventions, or cdecl call conventions.

 

Exp3: technical error

44 pages

 
"In winmain, two structures named MSG and wndclass are defined using the first two data structures ."

This is the second time I saw a similar description in a book published by Tsinghua University Press, describing the data type as a variable or a variable as a data type.

People who have learned C know that a structure (or struct) is a data type, and how can a struct variable become a data type? It seems that the professors of Tsinghua University teach and

We usually know a lot about it. The great god is the great God, and the understanding is different.

 

Exp4

44 pages

 
"Before the end of this chapter, you will also encounter hicon, hcursor, and hbrush )"

There is a suspicion of word collection. The direct icon handle, the cursor handle, and the painting brush handle are concise and clear. It obviously does not reach the "letter, elegance, and reach" height.

Yes, it is completely literal, and there is no translation at all;

At the same time, I am still confused. What is the handle of the mouse pointer? Why is there a pointer to the mouse? Generally, the mouse has a pointer,

Then the pointer has a handle; I don't know how to do it.

 

Exp5

48 pages

 
"This parameter must be set to hinstance when the custom icon is loaded from the executable file of the application stored in the disk"

This is really awkward to read. I don't think it's so awkward to change it to the following:

"When you load a custom icon from an executable file of an application stored in the disk, this parameter must be assigned to hinstance ".

1. Change "set as" to "assign value as" to make it clear and "set as". I thought it was a mathematical proof, and set X to a certain person.

2. Delete the words "in" and unnecessary ". The reading is obviously smooth.

 

Exp6: technical error

51 pages

 
"It should be noted that there are actually two other functions used to create a window, namely, createwindowwa and createwindoww ,"

From the above sentence, the translator regards createwindow as a function. This is really speechless and can be understood at will.

Widnows programmers know that createwindow is just a macro. I think the difference between a macro and a function is not as small as it cannot be distinguished.

 

Exp7: technical error

51 pages

 
# DefineWs_overlappedwindow (ws_overlapped | \
Ws_caption | \
Ws_sysmenu | \
Ws_thickframe | \
Ws_minimizebox | \
Ws_maximizebox) | \

I don't know. How can I add the C-language continuation symbol so boldly? If this program can be compiled, it is estimated that the translator will need the header file of the vs environment.

.

 

Exp8: technical error

Page 57

 
"The getclientrect function sets the four fields based on the window size"

We know that in the example of this chapter, the window of the program has the ws_caption style/style. Why is the size of the customer zone the same as the window size?

In addition, I also found that the translator translated the member variables of the struct into fields, which made me feel awkward. I thought it was a relational database. Why not translate it?

 

There are many other places in this chapter, which is really a headache. It seems that the English language is too much to learn and when the passive voice is used. A messy turning statement, because the West

PersonArticleA lot of "but"; this is not a full literal translation, a lot of "". If you forget it, you will get angry again.

 

Although a bit angry, I still want to thank Fang min for translating this book. Although it seems a little uncomfortable, it accelerates the learning progress and improves the efficiency.

There are also some shortcomings. If some beginners like me read it and do not consider it, it will lead to mistakes.

 

I sincerely hope that teacher Fang can open an error correction blog or webpage to get a better book for the next version. At the same time, I also hope to receive a response from teacher Fang; otherwise

However, it makes readers feel embarrassed.

Email: lilinly225@163.com.

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.