Publish understanding of COM

xiaoxiao2021-03-06  52

1. ATL WTL can be used to make an interface, where some examples have been provided on CodeProject.com, compared to MFC,

Live some, it is quite familiar with the Window window mechanism. If you don't have, please learn first, otherwise you have problems, you have no shortcomings.

solve.

2. Write COM or not to reject MFC, if you want to say efficiency, the application of the ATL implementation is relatively MFC.

Now, the difference is not, there is an opinion, please think about it yourself, the software you have written, if you use MFC to achieve, how much is much efficient,

cost.

3. ATL / WTL a major evidence is Template, if there is no Template idea in your program, you have a lot of you

Part of the part

4. Try to be based entirely on interface programming, simply, first developed interfaces, rather than specific implementation, if not this

You don't understand COM

5. Try to program COM program, simplify to C OO mode, reduce development difficulty, reduce development layer, if you are not

Solution, your COM study is not flexible enough.

6. Try to implement a lot of design patterns, with COM, when you find that it is very troublesome, you should look at C OO programming.

7. When writing a COM program, there is an error, and it is not possible to correctly write the COM program.

8. When you see the analysis IE or shell code, the syntax does not understand, then look at the COM nature, when

When you see the grammar, you don't understand the author's design and build, then you should experience the advantage of COM interface programming.

9. When someone said that COM is over time, you will say that there is no relationship, and other languages ​​are nothing more than changing the form.

10. When someone said that the person who wrote this comment is idiot, I will never go to the payment, I have already learned another level.

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

New Post(0)