WTL for MFC Programmers, Chinese version preface

zhaozj2021-02-08  225

WTL for MFC Programmers, Chinese Version ProLogue

I have been looking for such a class library: His provides an object-oriented package, a flexible message response mechanism and a more complete interface framework solution, providing a concise and practical package for standard controls, supporting the new features of the operating system. Support function expansion and secondary development, code automatic generation wizard mechanism, generated program uses fewer system resources, and finally there is full code support and document support.

You will say that you use the MFC!

Yes, I have been using MFC, but I have been getting tired of MFC. The old class library makes it unable to support the new features of the operating system (the MFC class library is not updated after the version 4.21 version, and then in 1998, people use Windows 95 and Windows NT4), bloated message mapping mechanisms and for Compatibility reserved code makes the program efficiency, and the frame structure of the face has enabled the generated application and occupies too much system resources. When a functionally simple program uses dynamic links, it is more than 200K, and when using 3% -4% system resources, I decided to give up the MFC and find a new function similar class library. I have studied a lot of similar code, not too simple, unable to use the development of the application is the lack of code and documentation. There is a class library named ClassProject, I also studied it, has the basic interface framework, which has a simple package for the control, but it is not practical, the huge virtual function mechanism makes the object very bloated, can't Reduce the occupation of resources. I even made a simple class MINIGUI, formed a basic framework solution, but finally gave up, the reason is simple: I can't use the development of the application. An application interface frame is complicated, and there are too many things to consider, and developers cannot fight two lines in the application and interface framework. Just when I was about to be desperate, I met WTL.

Since the needs of work often develop some COM components, the occasion that cannot use MFC is use ATL. ATL provides an object-oriented package and simple message mapping mechanism for the window, but ATL is too simple to develop applications. It is almost impossible. To make the ability of the ATL to have an interface framework solution, you need to do a lot, fortunately, WTL has done these things. WTL is a very strange thing. It is maintained by a team of enthusiastic programmers in Microsoft. It has never appeared on Microsoft's official product list, but you can download the latest WTL from Microsoft's official website. It does not have formal document support, use WTL to do keywords to retrieve only 0 results in MSDN, but the world's development website has a list of WTL discussion groups and mailing lists, any problem will be passionate. I have compared MFC and WTL, find that there are many incisions, and the functionality of MFC can be implemented in WTL, but the method is different. I have almost impressed the power of the power to rewrite the WTL of the previously written MFC program. The WTL program using a static link is smaller than the MFC program that uses dynamic links. The resource takes only half of the MFC program.

However, the enthusiasm of the moment cannot solve the problem of lack of document. Although there are many examples of WTLs and instructions on the Internet, almost all the sharp effects of the MFC can achieve, but they are in terms of local problems, lack The article systematically introduces WTL articles. At this time I saw Michael Dunn's "WTL for MFC Program" series, my feelings and in 1995 I saw MSDN for the first time, almost can't wait to finish it, at the same time Also germination translated it into a Chinese impulse. So I wrote an email to Michael, I hope to be authorized to translate his article into Chinese (in fact before this, I have translated two chapters). After obtaining the authorization confirmation, I found that this job is how difficult is it, but it is too late, I can only support my head. Now introduce this person in Michael. Mike lives in a sunny Los Angeles, which is deeply loved to live there. At the 4th grade, he graduated in Apple // e, graduated from UCLA (University of California, University of California, University of California). After graduating, Joje Symantec has become a Quality Evaluation Engineer of the Norton Antivirus Group. He almost learned Windows and MFC programming, in 1999 he designed and wrote a new interface for Norton AntiVirus 2000. Mike is now developers who become a Napster in PressPlay. He recently developed an IE toolbar plugin Ultrabar, which can easily achieve cumbersome web search capabilities. He also collaborated with others to create a software development company: Zabersoft, the company has offices in Los Angeles and Openg (Denmark). Mike likes to play the ball and cycling, and occasionally play PlayStation, he has always insisted on learning French, official Chinese and Japanese.

In addition, you need to explain that I translate "WTL for MFC Programmers" series articles is not for any benefits, just want to provide some new ideas. If you are a firm defender of MFC, you can stop here, then you will waste your time (I hope you have seen the text in front of you can still vomit). If you are a passionate programmer with alternative things, you can't study WTL, it is really a treasure.

Finally, use my friends to end the "WTL for MFC Programmers" in the "WTL for MFC Programmers" Chinese version: The translation level is as bad as you use!

This series is earliest published in the VCHELP website

Orbit (Star Rails Orbit) August 17, 2003 Full Text Package Download: http://www.winmsg.com/cn/orbit.htm

转载请注明原文地址:https://www.9cbs.com/read-2293.html

New Post(0)