Developer's Workshop to COM and ATL 3.0 by Andrew W. Troelsen

By Andrew W. Troelsen

The best way to construct refined COM items utilizing C++ and IDL, in addition to how ATL provides aid for a number of COM techniques

Show description

Read or Download Developer's Workshop to COM and ATL 3.0 PDF

Similar c & c++ books

Mastering Asp.Net with Visual C#

ASP. web is Microsoft's new know-how for constructing advanced, interactive net purposes. This entire consultant takes C# programmers via all of the steps of constructing net functions that leverage the total energy of the . web applied sciences. It contains in-depth insurance of server-side programming with ASP.

Practical C++ Programming, Second Edition

C++ is a robust, hugely versatile, and adaptable programming language that enables software program engineers to prepare and technique info quick and successfully. yet this high-level language is comparatively tough to grasp, no matter if you understand the c language. The second version of functional C++ Programming is a whole advent to the C++ language for programmers who're studying C++.

C++ Toolkit for Engineers and Scientists

This publication describes the layout, building, and use of a numerical research software program toolkit. it really is written in C+ +, model 2. zero, and makes crucial use of that language's Object-Oriented Programming (OOP) beneficial properties. Its improvement setting is the Borland overseas, Inc. , Borland C++ compiler, model five.

Additional info for Developer's Workshop to COM and ATL 3.0

Example text

We may express this relationship in code as the following: // C3DRect supports the IDraw interface. class C3DRect : public IDraw { public: // No longer pure virtual. void Draw() { // Add your code here. } private: // Any data points or private helper functions // the C3DRect class may need to draw itself. }; Chapter 2: Interface-Based Programming 47 48 Chapter 2: Interface-Based Programming Because the IDraw interface is completely abstract, C3DRect is now required to implement each method defined within it, which in this case happens to be exactly one.

As we will see, interfaces inject polymorphic behavior into a system. Before we get too far along, we need a working definition. For the time being, we will define an interface to be the following: An interface is a collection of semantically related functions, which describe a single and unique behavior that may be supported by a class. Note By convention, interfaces begin with an "I-" prefix. Stick to this convention, as you will soon see that an interface is an abstract entity that is never directly creatable.

IBoringFamilyCar. interface IBoringFamilyCar: public IFamilyCar { // ICar, IFamilyCar and IBoringFamilyCar methods... } As before, a class wishing to support these behaviors would derive from the nth-most interface in the hierarchy, and acquire all functionality up the inheritance chain. For example, we may wish to model a standard sliding-door automobile as so: // CMiniVan implements ICar, IFamilyCar and IBoringFamilyCar. class CMiniVan : public IBoringFamilyCar { public: // ICar methods.

Download PDF sample

Rated 4.16 of 5 – based on 35 votes
Category: C C