Click here to Skip to main content
15,920,603 members
Home / Discussions / COM
   

COM

 
GeneralRe: Registering IE toolbar Pin
xxhimanshu8-Dec-02 17:52
xxhimanshu8-Dec-02 17:52 
GeneralThreading Models and Monikers Pin
Heath Stewart27-Nov-02 2:20
protectorHeath Stewart27-Nov-02 2:20 
GeneralRe: Threading Models and Monikers Pin
Vi229-Nov-02 6:05
Vi229-Nov-02 6:05 
GeneralRe: Threading Models and Monikers Pin
Heath Stewart1-Dec-02 19:32
protectorHeath Stewart1-Dec-02 19:32 
QuestionWhy DllGetClassObject get the class factory instead of iunknown? Pin
doromoji25-Nov-02 20:47
sussdoromoji25-Nov-02 20:47 
AnswerRe: Why DllGetClassObject get the class factory instead of iunknown? Pin
Stephane Rodriguez.25-Nov-02 20:55
Stephane Rodriguez.25-Nov-02 20:55 
GeneralRe: Why DllGetClassObject get the class factory instead of iunknown? Pin
doromoji25-Nov-02 22:25
sussdoromoji25-Nov-02 22:25 
GeneralRe: Why DllGetClassObject get the class factory instead of iunknown? Pin
Stephane Rodriguez.25-Nov-02 22:34
Stephane Rodriguez.25-Nov-02 22:34 
doromoji wrote:
instead of letting CoGetClassObject create IClassFactory and then use IClassFactory to create IUnknown.

Because that's how COM is designed. The class factory is a mandatory intermediate step.
Class factories were designed to allow client apps to create multiple instances of an object, using the IClassFactory interface. In practice, I have yet to see a real world use of that design.

So, while you are right in the "direct use" you suggest, I am afraid you can't do much about it : the COM library is a native library of the operating system. Imagine it would break hundreds of thousands of real world COM apps only to satisfy the need of one customer (or several).
Besides that, MS is not investing in COM anymore. The .NET CTS provides the best of COM without the hassles.
GeneralRe: Why DllGetClassObject get the class factory instead of iunknown? Pin
Vi225-Nov-02 23:00
Vi225-Nov-02 23:00 
GeneralRe: Why DllGetClassObject get the class factory instead of iunknown? Pin
doromoji25-Nov-02 23:46
sussdoromoji25-Nov-02 23:46 
QuestionCan I write the an ODL script that can be compiled with MIDL Pin
SPGV24-Nov-02 21:48
SPGV24-Nov-02 21:48 
GeneralCOM Object Pin
Anthony988722-Nov-02 8:09
Anthony988722-Nov-02 8:09 
GeneralRe: COM Object Pin
geo_m29-Nov-02 22:30
geo_m29-Nov-02 22:30 
QuestionExcel grids? Pin
-Dy22-Nov-02 4:04
-Dy22-Nov-02 4:04 
AnswerRe: Excel grids? Pin
Steve S28-Nov-02 21:33
Steve S28-Nov-02 21:33 
QuestionOCX controls in a container - instantiation mechanism? Pin
Debs20-Nov-02 23:58
Debs20-Nov-02 23:58 
AnswerRe: OCX controls in a container - instantiation mechanism? Pin
Anonymous21-Nov-02 10:40
Anonymous21-Nov-02 10:40 
GeneralMS Project SDK Pin
Abubakar Siddque20-Nov-02 23:15
Abubakar Siddque20-Nov-02 23:15 
GeneralRe: MS Project SDK Pin
Christian Graus21-Nov-02 20:36
protectorChristian Graus21-Nov-02 20:36 
GeneralCalling Other DLLS from VC application Pin
Kashif Manzoor20-Nov-02 21:23
Kashif Manzoor20-Nov-02 21:23 
GeneralRe: Calling Other DLLS from VC application Pin
AboMalek10-Dec-02 3:48
AboMalek10-Dec-02 3:48 
GeneralCOM object pooling Pin
Dudi Avramov17-Nov-02 22:24
Dudi Avramov17-Nov-02 22:24 
GeneralRe: COM object pooling Pin
Daniel Turini17-Nov-02 22:36
Daniel Turini17-Nov-02 22:36 
GeneralRe: COM object pooling Pin
Dudi Avramov17-Nov-02 23:49
Dudi Avramov17-Nov-02 23:49 
GeneralRe: COM object pooling Pin
Daniel Turini18-Nov-02 0:32
Daniel Turini18-Nov-02 0:32 

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.