Click here to Skip to main content
15,913,773 members
Home / Discussions / COM
   

COM

 
QuestionHow to use an OCX Pin
yuval30-Jun-02 21:02
yuval30-Jun-02 21:02 
AnswerRe: How to use an OCX Pin
Ernest Laurentin1-Jul-02 8:49
Ernest Laurentin1-Jul-02 8:49 
GeneralChange path of an open Windows File Open/Save common dialog Pin
Jonatan Dahl30-Jun-02 12:33
Jonatan Dahl30-Jun-02 12:33 
GeneralEnlist the Transaction of two transactional com+ object Pin
Lizp28-Jun-02 22:51
Lizp28-Jun-02 22:51 
GeneralOverwriting COM Pin
28-Jun-02 4:38
suss28-Jun-02 4:38 
GeneralRe: Overwriting COM Pin
soptest28-Jun-02 9:20
soptest28-Jun-02 9:20 
GeneralRe: Overwriting COM Pin
28-Jun-02 18:31
suss28-Jun-02 18:31 
GeneralRe: Overwriting COM Pin
Ramu Pulipati29-Jun-02 4:15
Ramu Pulipati29-Jun-02 4:15 
COM supports two kinds of object orientation over binary components with C++. They are Containment and Aggregation.

Containment: This is traditional C++ wrapping up style where the new CoClass will implement the desired interface and internally use the Binary component to perform the operations.

Aggregation: The new CoClass will delegate the implemented interafce requests to the binary component and any request to the CoClass from binary component will be delegated back. This is a kinda tricky thing and has got restrictions. Like, the component being aggregated should be an In-Proc Server and should support component aggregation.

Advantage of Containment Over Aggregation: It doesnt have any restrictions.
Advantage of Aggregation Over Containment: You dont have to implement all interface methods by youself in the component. You'll just delegate, this will be handy if interface has lot of methods.

Check out COM books for further details.

Thanks,
Ramu

GeneralRe: Overwriting COM Pin
Sam Hobbs1-Jul-02 13:50
Sam Hobbs1-Jul-02 13:50 
GeneralATL - Class Factory and Interface Implementation Seperation Pin
Marc Bednar27-Jun-02 9:57
Marc Bednar27-Jun-02 9:57 
GeneralFiring an event from an MFC ActiveX control Pin
twomagiclovers27-Jun-02 8:59
twomagiclovers27-Jun-02 8:59 
GeneralRe: Firing an event from an MFC ActiveX control Pin
Ernest Laurentin27-Jun-02 19:29
Ernest Laurentin27-Jun-02 19:29 
GeneralSimple Srting Conversion Pin
Ryan B.27-Jun-02 5:19
Ryan B.27-Jun-02 5:19 
GeneralRe: Simple Srting Conversion Pin
Ernest Laurentin27-Jun-02 19:27
Ernest Laurentin27-Jun-02 19:27 
GeneralRe: Simple Srting Conversion Pin
Stuart Dootson3-Jul-02 14:37
professionalStuart Dootson3-Jul-02 14:37 
GeneralRe: Simple Srting Conversion Pin
Jeremy Pullicino4-Jul-02 4:57
Jeremy Pullicino4-Jul-02 4:57 
GeneralNo Matching DLGINIT Pin
ssirisha27-Jun-02 4:35
ssirisha27-Jun-02 4:35 
GeneralRe: No Matching DLGINIT Pin
Prem Kumar28-Jun-02 4:39
Prem Kumar28-Jun-02 4:39 
GeneralRe: No Matching DLGINIT Pin
ssirisha28-Jun-02 6:29
ssirisha28-Jun-02 6:29 
GeneralSAFEARRAY in Variant Pin
Hans Ruck26-Jun-02 5:18
Hans Ruck26-Jun-02 5:18 
GeneralRe: SAFEARRAY in Variant Pin
Ramu Pulipati26-Jun-02 6:24
Ramu Pulipati26-Jun-02 6:24 
GeneralDCOM port restriction Pin
MrGlover24-Jun-02 13:46
MrGlover24-Jun-02 13:46 
GeneralCOM Exe that "stays" Pin
[Shadow]24-Jun-02 2:28
[Shadow]24-Jun-02 2:28 
GeneralRe: COM Exe that "stays" Pin
Ernest Laurentin24-Jun-02 4:29
Ernest Laurentin24-Jun-02 4:29 
GeneralRe: COM Exe that "stays" Pin
Jason Henderson24-Jun-02 9:16
Jason Henderson24-Jun-02 9:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.