Introduce a book of several com

zhaozj2021-02-11  170

Introduce a book of several com

-

Han Shaoong

The most effective way to get knowledge is to read, of course, read the book. It is no wonder that the ancients will be called "Reading".

introduction

In fact, writing some articles introducing computer books is my long-lasting wish. On the one hand, because my friends often make me recommend them for them.

Some practical books, on the other hand, my study is not very smooth, facing the fish dragon in the bookstore.

"Bust" is really unknown. As a result, the heart is coming, as long as I feel almost, I bought it! As a result, I bought a lot of books that I don't have to buy, wasted

The money, wasted time. The year is, and there is some opinion on the computer book market, and some feelings have been produced.

Most people are not sages, so they often have praise, but it is difficult to accept criticism. Many of my friends are worried about my safety and persuade me more

say good things. But the book is very inferior, and if there is a falsehood, it is inevitable that the truth is inevitable. So we registered a "safety government

Policy ":" Yang Shan "is mainly, after detailing a good book, it will make a few shortcomings, I think the author and the publishing house will still pick it up.

Bar. As for some irresponsible publications, I only say phenomenon, don't mention the name. (Please understand, floating in the world, safety first, safety

All first. )

At present, the IT industry is competitive, and the market-changing transformation is unpredictable. In order to survive, all people are overloaded by all aspects. As a programmer

Or the manager is very difficult to explore the head from a large pile into the whole, and pick up a long-awaited professional book to enrich his own.

They certainly hope to transform the things in their own ideas as soon as possible, so that this precious and short-lived buffer period learned more.

But unfortunately, some books are not written for this purpose, and the words are as difficult as the text of the text (maybe some author feels like this.

In order to show his horizontal definitely, maybe some author used the content that did not understand what the content was understood, so I had to use a large pile of clouds.

The words "shame"). Not only that, there is a more terrible phenomenon, when the computer book began to show a strong sales momentum, countless

"Experts", "Master" has emerged overnight, and various names "the high-spirited" books, the training makes people look at it.

As a taxi who travels on the street. And don't say what they have, I think, "more" seems to be a once

Verified many truths. I saw the publicity of "Internet Training" in a ranger bar of a university in Beijing. It is really a crying.

No..

Nowadays, the shape-colored computer training class has become "a large landscape of IT culture." For this phenomenon, foreigners' comments seem to be more

Can happen deep: "In the United States, there is not so much training course, but a primary school students can operate computer." "In China,

Computer training courses are everywhere, but the popularity of computer technology is still a problem. "China's bicycle, men and women will

Ride, but have you seen a bicycle training class? If it is a bicycle training class everywhere, you will teach you the wheels of your 'bicycle.

How long is the problem, how many spokes, etc., then believe that people who can ride a bicycle will be less and less. "This is true," said the book or the translation.

Does the unprecedented prospects of computer books indicate that our level is very high? I think it is. Sometimes in order to solve individual problems to find information,

The result is often a waste of time, still losing the feelings of "a big copy of the world". The ancestors of theme and form are very profitable, and the book is full of market,

I call it "popcorn phenomenon." The allusions are like this: the previous year, the street in front of my house has a popcorn, because this is one

Home, so business is booming. But how long, after the rain, the spring bamboo shoots have emerged, and the word along the street is spectacular.

Now everyone's business is not very good, but no one has no opinion, but my family is "rice flower fragrance". If the spleen of the Chinese "follow the wind" is the ancestral, because the old people will give it a god, whether our computer authors should have some spiritual, quiet

I want to think about it, what books are lacking in the market, don't be "human clouds".

Although it is good for the teacher, it is not so good, because you have to have a deep understanding of the knowledge telling, and

Enough to listen to others in deep-in-depth language. The attitude is of course the first, but the sacredness of the book is trampled by many author and publishing house.

Some publishing houses regardless of quality, a festival is fast, and the business opportunities have, but fell the brand. A very good English book is turned

Translation of the head is not the horse mouth, you can't see it. Since the copyright is sold to them, other publishing agencies have a heartbeat that is powerful. A good

The book is even a good book, and the interests of interest is of course readers. In addition to attitude, there must be horizontal, book is not casual.

It can be written. The names of many books in the times are more scary and scary, always reminds me of the streets selling strong pills: "Just

After eating my medicine, I can't get into the knife, and I don't invade it. But in fact, many authors itself has weak skills, can't write architecture and spirit, so

Thousands of books that are entry are to teach everyone to press the menu, select commands, the dialog box, press 'OK' ... ". True Old

The teacher is not looking for, but the "two knives" is everywhere (just like a singe star who is a TV channel now, the movie star is like a flower.

Raining). In addition, some publishers are not strict, this is caused by personal and can go public.

Today, I introduce you to the book of COM, I hope to help the army in COM.

Want to learn COM must read books --- "COM technology insider"

Title: "COM technology insider" English name: "Inside COM" author :( US) Dale RogersonMicrosoft Press 1997 Chinese translator: Xiu Zhang Qinghua University Press, March 1999 First Edition Price: 50.00 yuan (with CD)

Microsoft Press's "Inside ..." (translated into Chinese is "... technology insider") series books seem to always maintain alone

The authority of the arrival is rarely disappointing. From "inside ole" to "Inside Visual C ", it is very popular,

The reputation is excellent. "Inside Visual C " is called a deep-in-depth model, the language of the master, and the proficiency of the proficiency.

Not shallow. But it may be due to the reason, many people who want to learn Visual C face this thick masterpiece, how much is more

Gamble, worry, don't understand yourself. Le Shao Yong believes that as long as you have some basic knowledge of C (there is a better concept of Win32), learn this

The book is not difficult, of course, perseverance is a secret recipe against difficulties.

"Inside COM" is also called a rare opportunity. The biggest feature of this book is to be relaxed in the language, step by step.

It is not difficult to see that the author is really a bitterness. In order to set the "threshold", the author is as good as the first few chapters

Can avoid a lot of difficulties and details such as types, registry, etc., and concentrate on "advantageous force to annihilate the enemy", I don't know

Mr. Dale Rogerson is not the enlightenment from the command of Peng Commander in the Korean War. On the arrangement of the sample program, each

Chapters have one to two procedures independent of other chapters, and the author as much as possible to make these programs shorter. On the one hand, the shortest example read is relatively easy. On the other hand, the reader can put the focus of the learning in the demand for COM components, without having to worry about the complex examples.

Those unnecessary details and complex practical problems. In the programming language, the author uses the traditional C language, not involving any

Win32 and MFC knowledge, in addition to some of the convenient interface pointers in Chapter 9, there is no use of other parts of the book.

Template class. In short, the authors will throw all the cumbersome to make readers to print forward, as long as you have learned standard C , there is object-oriented programming

Basic concepts (encapsulation, inheritance, polymorphism), you can read this book.

The first five chapters of the book are very clear, all of which are basic concepts such as components, interfaces, reference counts, interface queries, and DLLs, no need less

Broadrove. Slightly a bit of a little inadequacy is the following command:

"CL Client1.cpp Create.cpp Guids.cpp UUID.LIB"

"Cl / Ld Cmpnt1.cpp Guids.cpp UUID.LIB Compnt1.def" and

"Nmake -f makefile".

The problem is, how many people can be very skilled in writing a Makefile file and use the nmake and cl commands? I am afraid I have little. Reader

I have to spend a lot of time to ponder the compilation process of the program, take time, spending, don't play food!

Of course, as a scope of principles, these things should still be, but at least should tell the reader how to operate. I took the fifth chapter

For example, the first is to establish a component DLL: Due to VC , we must do it with "CL / LD", just need to be edited.

Cmpnt1.cpp, cmpnt1.def, and ifce.h, Guids.cpp, select an empty one in the VC integrated environment

Win32 DLL project, add these four files to the project, and CMPNT1.DLL is generated after compiling. Then establish a client:

Many people often do this: build an empty Win32 project file, then add the edited standard C file to the project, but

Connect.

Someone asked me more than once: How to establish a standard C project under VC ?

(1), just write a standard C program, the more simple and better, such as:

Main () {return 1;}

Deposit this file into the directory you want, must be the same name as you want to build. (If you want the work name is apple, then you

This file should be stored as apple.cpp).

(2) Compile Apple.cpp, at this time, VC will prompt you not to build a project, do you need him to build one for your default, of course

"Yes". So VC created an engineering of an Apple in a directory with apple.cpp.

(3), the next is "crossing the river and bridge", remove apple.cpp from the project, join or edit the file you want.

The first six chapters of the book is very clear, all are all such as components, interfaces, reference counts, interface queries, and DLL, HRESULT, GUID,

The basic concepts such as registry are generally available, and there is no need to be less courageous.

Chapter VII tells the product factory, using the class factory to create a component may make people confuse: do not need a class, you can write the same powerful group

Come, why do you want more? Shao Yong believes that if you only want to write components within a process, then this sentence is right, because you can write a full-time function to create all the components, then we can't see what is existing Necessity.

However, if you want to create a component across the process, the situation is different: you can write out to create components in other processes and return the handle.

"Global function" came? So Microsoft came up with a special component, using this special component to create another

Components, this special component is a class factory. During the creation of the processed components, the type of factory interface iClassFactory is the first crossward.

Cheng's connection.

Chapter VII is a crucial chapter tells the reuse of components: inclusion and aggregation. About "COM is not object-oriented"

The discussion seems to have been in progress. COM was accused of being a very poor technology because COM does not support the "inheritance" in traditional sense.

Here we have to look at this question: Components have "independently release features" and "binary features", since it can be released independently,

You should not depend on a base class, otherwise if the base class has changed, then the component has to change to change, and it can be discussed independently.

Start up. Component multiplexing is a realistic problem because some of the new components can save a lot of functionality with ready-made components.

Time, COM uses inclusion and aggregation to realize the multiplexing of components, so that both the "independent publishing characteristics" of the components are maintained, it also changed

Now "inheritance". Hey! Call the "cat" "Mi". Le Shao Yong believes that less than a global quarrel, the better, measure

A technical quality standard is to see it is really easy to use, can solve our problem.

About the sample program in this chapter describes a point:

Careful readers may have such a problem: there is such a sentence in ca :: init () function in cmpnt1.cpp:

HR = m_punknowninner-> queryinterface (IID_IY, (void **) & m_piy);

In this sentence, the external component CA will get a pointer to the internal component IY interface. But the problem is there, is it necessary to adjust?

Use NondelegatingQueryInterface? Various signs should seem, because we have to get non-proxy unknown here.

The pointer of the interface. What is the case? Agent unknown interface and forward request

For the external components, the external components are pushed back to the internal components to form a dead cycle. But run an example program, discover

The dead cycle does not appear, everything is normal! why? Suddenly awake carefully: Pursue M_PunknownNiner pointers

The origin, found that it is a non-proxy unknown interface to the internal components, that is, the actual call is actually

NondelegatingQueryInterface, of course, will not be wrong (this is also an embodiment of object-oriented polymorphism).

Chapter 9 In addition to the intelligent pointer, there is basically no new concept (actually intelligent pointer is not new,

Visual C itself supports intelligent pointers). As for CunkNown and CFactory, as long as you understand the first eight chapters, understand

They are not difficult.

As for the next three chapters ... ... It is said that this book is coming, from the views of the reader feedback, it is quite a lot of criticism. Universal

The view is as follows: First, the results are the main, because the cross-trip call of COM is indeed complicated, Shao Yong also spent the strength of nine cows

"Dial the clouds", it is not easy to speak this. But readers have opinions on books. It is mainly because they don't understand, they hope to speak a complex knowledge with the most popular language, and strict. Therefore, these chapters and concepts need

It is still a lot of consideration, which should be strengthened for DCOM (but this does have a certain difficulty).

The book is finally provided with an example of a jigsaw. It is interested by readers to study, play, hard work for a long time, and it should be relaxed.

A moment.

Writing in the end of the book: "After understanding all the content introduced by this book, the reader should be able to be a COM expert."

But Shao Yong thought that this does so early, if you make COM's knowledge than a "big tree model", then this book is only solved the most

The basic problem is the main part of the first tree of the big tree. If you have a complete understanding of COM, you should also understand COM.

Every branch of this big tree, each leaves and bugs on the leaves.

This book is worth seeing - "COM / DCOM Programming Guide"

Title: "COM / DCOM Programming Guide" English name: "COM / DCOM Primer Plus" author :( US) Corry, Mayfield, CadmanSams Publishing 1999 Chinese translator: Liu Lei hole Tsinghua University Press, 2000 January 1 Version price: 52.00 yuan (with CD)

The SAMS published by the book occupied the market with its unique perspective, and the readers were quite good. Seeing their books may be a quick start

Shortcut. When the COM book is very short, the "COM / DCOM Programming Guide" is called a book worth seeing. Leisurely

The evaluation of this book is: Regarding the discussion of the principles, there is no obvious flaw, and the language is quite wide, the language is also

It is very rare, but it is very rare, but it is unfortunate that the fire is still owed, it is not deep enough, so it is not a "COM monograph". After reading this book,

If you have a detail, you will be like a big meal after you have a big dinner, but it is the "big kitchen craft", it is inevitable.

I feel that there is a certain kind of beauty. However, from a practical point of view, this book is also known as the superiority, not only gives a complete example.

The sub-chapter also gives the configuration example of DCOMCNFG, which is rare. Readers If you look at this book and some of the other books,

"Guide" is a well-deserved is an excellent "Two Leaders" (seeing the translator really spends a thought,

It is also very decent).

The consistent style of SAMS's book is the threshold, and there is basically no pain in learning. But COM is a relatively advanced technology.

"Zero pain" learning seems unlikely, and SAMS always strives to be practical, so he will not give some actual examples, so

And knowledge is more. If you are not understanding C , event driver programming, and MFC, you should read this book before reading this book.

First go to some books of relevant knowledge.

The discussion of the Interface Definition Language (IDL) can be regarded as a flash point. IDL is originally not designed to describe COM classes and interfaces

One way, but an open software foundation for the RPC IDL specified by the Distributed Computing Environment (DCE). Microsoft originally envisaged IDL

A way to describe the RPC interface that can be used between Windows NT machines, and later gradually joined many dedicated to COM components.

The key is used to describe the COM interface and COM objects.

Talking about IDL and ODL, there may be a lot of readers feel confused. However, there is no way, this is a historical legacy issue, and the discussion on page 170 is believed to give you a satisfactory answer.

Americans write books, I like to write some background culture, Shao Yong is very appreciated. For example, this book refers to "lifestyle of COM",

It is realistic that people are bright, and the spirit is one of them. DON BOX is a character of a COM field, which is often seen in MSDN.

His masterpiece, what he said, "COM's lifestyle" is actually different from the development of COM programming and traditional C programming and

Software engineering changes.

The book is as follows:

"It is highly recommended that you start all programming work with IDL, do not use IDL only to generate a proxy and placeholder module of local servers.

At the time, Don Box has said, 'The true COM programmer started with IDL'. "

Although Shao Yong is very respectful to the master, it is still considered that this is too absolute and extreme. Because Don Box is actually a kind

The idealized software development method, we can't get it. According to DON BOX theory, if we develop a project, all apply

COM components, then you should design all interfaces before starting programming, because the interface is unchanged, you should not change it.

Change, there should be all work from IDL. Back in reality, our programmers are doing a product,

Generally constructed a program framework, the component is just some basic functions, not all of the project, so the master's remark is here.

Not suitable for us.

Many people think that "in software, the United States is our tomorrow", so they have used Americans' invention, theory

Bible to read. But Shao Yong said: "If you learn from, you have to choose, think about it, see it is not in line with China's national conditions."

The last chapter of the book uses the previously described content to create an example of a real distributed application. It is recommended that the reader reads carefully (package

Other programs in this book should be courageous to eat crabs. Otherwise, even if you have a little bit of oil, tell you what is the beauty of the crab.

The people who may believe may have a lot of people.

Highly recommended! COM's "Collection of Collection" --- "COM Principles and Applications"

Title: "COM Principles and Applications" Author: Pan Aimin Tsinghua University Press, November 1999 first edition Price: 39.00 yuan

The simple appearance of the simple appearance, a strange name, the price of almost white delivery is the first feeling of Shao Yong's first book. But open this book,

After browsing, Shao Yong suddenly "heartbeat accelerated, he was calling", smashed his eyes, there was a joy of gold.

So one chapter, one chapter, the more you look at it, the more you read more, you can't help but exclaim: "This book is a collection of COM!"! Leisurely

It is believed that this book has four characteristics of "systemic, rigorous, in-depth, practical". "Systemic" is the knowledge discussed by this book

It is related to all aspects of the COM, which is not only comprehensive, and the system. Looking at Pan Aimin's advice of the best

Can, not only have in-depth research on COM, but also the understanding of C is also a fire (the author translated "Visual C

Technical insider "[fourth edition]), therefore tells the clarity, the wrong, the self-contained system, there is such as the water of the Yangtze River to pick up the sea,

Make people feel refreshed, lingering. "Strictness" is that the phrase wording in the book is quite paying attention to the scrutiny. Some places to see

It seems that there is a suspicion, but carefully, I found the mystery, but I haven't understood so deeply before. "deep

Into the book is not a general book, many chapters are famous, giving people a new feeling, is a masterpiece. Because the author's skill is deep, the combination of theory and practice can be said "Seamless", so "practicality" is also this

A big feature of the book.

The book is divided into three parts, and the first part includes the top five chapters, telling the principle of COM. Shao Yong believes that if several show is the same topic

Proposition composition is easy to see the level of level. The most basic concepts such as components, interfaces, DLLs, and cross-trip call calls

Maybe all COM books will speak, but the depth is different. In this book, the author not only tells the basic theory, but also rustles it.

Color, machining, many places have also summarized, and it is very organized to say "one, two, three" to the reader. With now many people put English

It can be "piled up", which can be "piled up", compared to a book.

The fourth chapter tells the transparency of the client program to create a COM object. Everyone knows that whether it is a process within the process or processed components,

The client can create a COM object with a consistent method. For components within the process, whether it is creation process, or the adjustment of the interface function

Using the process, we can understand the interactive operation between components and customers in accordance with the general same processes within the same process;

In the process of processes, the actual situation is much more complicated, because component programs and client programs have different process space, so they

All interaction processes involve communication between processes.

Although client programs and objects are in different process space, all calls to interface are indirect, customer program call interface

The member function is like a function in this process, which is the transparent effect of COM.

In this section, the author not only introduces the memory model of the component process and the customer process, but also columns in the interface call.

(MARSHALING) The process has made detailed discussion and gives the process of realizing a standard column set program for custom interface, and finally

The implementation process of the process external component custom interface is also described with example.

Shao Yong believes that this part of the discussion is not in-depth, and it is very standard. Take the column process of the class factory as an example, there is a discussion in the book:

(1) First, determine the CLSID of the agent object provided by the registration object (ie the class object), if the registration object cannot provide proxy

The CLSID of the icon uses the standard column set proxy object. Then the CoregisterClassObject function requires the registration object to provide the number of columns.

According to the package, it is actually a byte stream that contains information necessary for a proxy object to a cross-trip connection to the component object. If register

Objects cannot provide such packets, using COM-supplied standard column packets.

(2) COM transmits the CLSID and column packets of the agent object to the customer process, the COGETCLASSOBJECT function is waiting

These data.

(3) In the customer process, COM creates a proxy object based on the transferred CLSID and passes the column packet to the agent object.

Because the column set packet contains the connection information of the proxy object and component object, the proxy object uses the packet to establish a connection to the component.

The discussion of this summary is almost all the chapters of the book. It can be made very rare, but the author does not have a pen,

He also introduced the Imarshal interface in detail and gives the implementation of custom columns. I am afraid you can't find such a knowledge.

Bar.

Chapter 5, "Developing COM App Use with Visual C " mainly discusses two aspects, one is MFC, one is ATL. Due to work

In Visual C , this part can be first none in the same kind of book in this section. I said that when the general book is talking about it, the mechanism to implement the COM interface with MFC often has something to involve, but most of the discussion is not enough.

Since then, Shao Yong has a feeling of "walking out of the restaurant but there is nothing to eat", it is inevitable. But this book is done, through

DECLARE_INTERFACE_MAP (), begin_interface_map, end_interface_map, interface_part,

Init_Interface_part, the in-depth profiling, so that the reader can implement the COM interface for the MFC, how to define the interface mapping table has one

Comprehensive understanding. If you need to use MFC to write COM components, I believe you will definitely benefit shallow. Next to the discussion of ATL

Thin, but the content is essential, with a high reference value. Le Shao Yong believes that today, the ATL is increasingly valued today, the market

It is still missing a system to tell ATL books, but I don't know which "heroes" have mood to fill this lack.

The second part of the book is six to ten chapters, telling some of the contents expanded in the COM specification, including connectivity object communication mechanism, structured storage

Technology, the name object technology, unified transport mechanism and DCOM of COM objects. If the reader should comprehensively understand COM, this part of this content is you

Details of these technologies are provided. Previously, very few books can be so systematically introduced these technologies, even if there are occasional books involving one or two,

Not deep. And this part of the knowledge involves many practical problems in COM applications, such as ole, although it has been born for many years.

But most people still know how to know it, it is not enough. Although you can find a lot from various media, but put these information

Identifying out of systematically telling, not much. Throughout these chapters, it can be seen that the author must seriously study the COM architecture and

Many internal information and source code of OLE, and made these original brackets through their own processes, "delicious"

Dinner. "" Rare, rare, "Shao Yong read these chapters, couldn't help but praise," Ji Dabu also! "(In fact, every one here

The topic is a lot of a lot of feelings to share with you, but unfortunately, you can only take the most exciting part of the part, you want to know more,

Still buy a book, look at it slowly. )

DCOM has to be said, it is inevitable from the COM from the desktop environment to the distributed network environment. From COM gradually over DCOM, this part

It is a model of "in-depth light" not only detail the principles and characteristics of DCOM, but how users create DCOM components, but also to connect tubes

Treatment, concurrency management has made detailed discussion. Remember that I spent the last few chapters when I commented on the "COM technology insider"? Then

Look at the books of Mr. Pan Aimin make up for your shortcomings.

In the second part, my last topic is about security, because it is too important for a distributed system. "COM

The principles and applications discusses the security in two places. The first time is in Chapter 4, it is mentioned to activate security and call security.

Here, COM security is described here from the perspective of COM characteristics, focusing on the security model structure. The second time is in Chapter 10, mentioned access security

And excitation safety, focus on the configuration of the security model in the distributed environment, emphasize practicality. At this point, some readers may

I will feel that these four "safety" mix together, bumps, stir mix, and it is a good dish, but it is a pity that I don't understand. Less mind

For this, this is only because there are too many nouns in the COM. It is very confusing, and Microsoft is still so, let alone others? Therefore, this is really difficult for those who write books. So some authors have adopted a policies that avoid them, and they don't speak.

Access security and stimulation security, and if you want to talk security and excitation security, only words are only words that only words of activation security and call security.

Think although it is difficult to solve it, it is not conducive to readers to build a complete concept. "COM principle and application" did not avoid difficulties,

"In-depth" has also been reflected again. It can be seen, when writing this part, the author also got a job, he took different angles.

There is a level, a focus on COM security, I think it is valuable to have two: 1. The information of COM is very difficult, about

Safety materials are less, it is not easy to collect the data of the compare system; second, there is basically no right before this part of knowledge

We are discourse, and the people who write books have comprehensively understand that the author has a good skill and understanding, of course, has had a hard effort.

To be honest, this part of the book is less than a few times, and there is a lot of knowledge. My suggestion is that when reading this part, cut

Need to be meticulous but do not drill the horn pointed, otherwise it will really come around for a while. Also, because the security of DCOM is built

At the base of NT security, many places involve the security policy of distributed systems, so you'd better have this foundation in this regard.

Knowledge, if not, don't understand is a normal thing.

Through the study of the first two parts of this book, you have had a comprehensive understanding of the basic principles and extensions of COM, just like cover

House, you have already made a solid foundation and rushing up the wall, it is a welcome! But this is not enough because we learn a technology

The purpose is how to use it well. Therefore, the third part must be conducted, here you will learn from both COM advantages and

The technique used, the author will teach you how to cover the roof of the house.

The eleventh chapter of the book tells the automation object. The concept of automation appears in OLE2 at the time, called OLE Automation. This summary

Read is absorbed by COM, called automation. Automated concepts are introduced in a wide variety of Control, Word and Execl also support

automation. This is often the case, the more it is, the brighter, the brighter it is, the next one is just right. This is the case,

The description of various information is always can't catch the focus. "Inside COM" discussion about automation is also unable to be full

The "COM principle and application" is compensated for this shortcomings.

We know that COM substantially defines a communication method for customers and servers, and this communication is done through an interface. When I

When you use C to write a customer program, everything is so beautiful, you will get through CocreateInstance and QueryInterface.

An interface pointer, you can call the corresponding function through this interface pointer. Please note that all this is made through a pointer.

But when we write a customer program with Visual Basic, the situation is not so beautiful, the reason is only one: Visual Basic is weak

Type programming languages, which is very limited in the data type description. Therefore, we must propose a to let the interpretative language can also be accessed.

The solution of the component is called automation. An automated server is actually an identified IDSPATCH interface.

COM components, and an automation controller is a COM customer that communicates with the IdisPatch interface with an automation server.

In this chapter, the author has a detailed discussion and a good example of the programming of the IDSPATCH interface and related data type, the implementation, dual interface, and late binding and early binding, and the programming of the automation objects. Another flash point.

Chapter 12 tells the ActiveX control. In this chapter, the author not only discusses the basic theory of ActiveX control, but also

Application ActiveX control in the Internet environment has been discussed in depth. Therefore, this chapter is for readers with some basic knowledge,

It is an unbearable information that has been understood and rapidly improved. Since the author has made some extraction in this part, some

Square may have a certain sense of jump, but there is a lot of information that is currently introducing the ActiveX foundation. Due to the author

It is very familiar with MFC. The example of this chapter still uses MFC to write and conducts in-depth analysis, which is a real improving for C enthusiasts.

Good opportunity.

As a software model, CoM not only provides standards between procedures and procedures, but also changing traditional programming methods. because

Therefore, the main contribution of COM is the change of the programming method. Chapter 13 of the book tells the COM-based programming, in this chapter

In the case, the author analyzes the object-oriented programming method and compares with the component chemical design, and discusses MTS, and

For multi-layer application software structure and COM-based web application, it will introduce readers to create a comprehensive compliance.

Awareness.

Although MTS has been introduced for some time, there are not many people who are really used. Many explorations only stay in theory, all kinds of reasons

The superiority of MTS is not known by the vast number of Windows programmers. However, with the introduction of Windows2000 and the release of COM , this

The situation will change soon. COM is integrated with COM, DCOM, MTS, which gives component software through various support of the operating system

Raise to the application layer, and all underlying details are left to the operating system. The last chapter of the book introduces Com , for everyone to open up the eyes,

Solving the services provided by Windows2000 have a very significant practical meaning.

"COM principle and application" is the power of Mr. Pan Aimin, I think it is two: one, this book is in front and rear consistency and noun

It is very good, and the reader gets "authentic" COM Chinese books, which is significantly different from translation work. Second, domestic writers can

Write the works such as (or even more than the US writer), it is indeed a rejoiced thing, but

I hope that in the near future, there will be more and more such books.

Of course, "COM principle and application" is not perfect, and some partial discussions are slightly thin for the knowledge involved.

In particular, there is a lack of analysis of the examples of the book, perhaps the author considers the cause of the compression space. Le Shao Yong believes that not all people can eliminate

Knowledge after "concentrated".

Through the above discussion, I believe that you have a certain understanding of these COM books, you can choose to read according to your own actual situation.

New millennium, new weather, Leng Gong special written a connection, with everyone:

Shanglian: New Millennium View Sun Moon Huiye

Downlink: tens of thousands of drainage points

Horizontal batch: Zhi is present

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

New Post(0)