equal
deleted
inserted
replaced
3941 |
3941 |
3942 If you can get to Interface B from Interface A, and you can get to Interface C |
3942 If you can get to Interface B from Interface A, and you can get to Interface C |
3943 from Interface B, then a QueryInterface on Interface A looking for Interface C |
3943 from Interface B, then a QueryInterface on Interface A looking for Interface C |
3944 must also succeed. |
3944 must also succeed. |
3945 |
3945 |
3946 @subsection |
3946 @subsection Creating the InterfaceId |
3947 The final piece of this puzzle is to locate where the interface Ids actually |
3947 The final piece of this puzzle is to locate where the interface Ids actually |
3948 come from. The answer is from a static initializer that must be located in |
3948 come from. The answer is from a static initializer that must be located in |
3949 the @code{.cc} file corresponding to the Interface. For example, to |
3949 the @code{.cc} file corresponding to the Interface. For example, to |
3950 initialize the Interface Id for the class A above, you would simply add the |
3950 initialize the Interface Id for the class A above, you would simply add the |
3951 following code to the source file that implements class A, |
3951 following code to the source file that implements class A, |