Click here to Skip to main content
15,903,362 members
Home / Discussions / COM
   

COM

 
QuestionNeed to have a ClassFactory Pin
ShyamR11-Nov-08 18:44
ShyamR11-Nov-08 18:44 
Hello Everybody,

I have basic query regarding ClassFactory.
As we know ClassFactory creates the components.
Clients call CoGetClassObject which calls DllGetClassObject,
which creates ClassFactory and returns an IclassFactory pointer,

Now my doubt is what if DllgetClassObject creates the component directly,
and return the required interface from the component.
Why we need to have a classfactory, why can't we directly create the compnent in DllGetClassObject.

Waiting for your response.
Thanks,
Shyam
QuestionReg:Output from Exe Method call Pin
swethasri11-Nov-08 18:13
swethasri11-Nov-08 18:13 
QuestionHow to retrieve document content or whole document on DocumentOpen Event Word Add-in Pin
PatilVijay9-Nov-08 19:49
PatilVijay9-Nov-08 19:49 
QuestionHow do you create and work a proxy used to Marshal an interface? (An IDropTarget to be precise) Pin
Code-o-mat9-Nov-08 11:11
Code-o-mat9-Nov-08 11:11 
QuestionError message "Overlapped I/O operation is in progress" Pin
Member 14340936-Nov-08 2:42
Member 14340936-Nov-08 2:42 
AnswerRe: Error message "Overlapped I/O operation is in progress" Pin
Randor 9-Nov-08 21:48
professional Randor 9-Nov-08 21:48 
QuestionSerial Port Simulation Pin
pierrecor5-Nov-08 21:40
pierrecor5-Nov-08 21:40 
AnswerRe: Serial Port Simulation Pin
Roger Stoltz5-Nov-08 22:05
Roger Stoltz5-Nov-08 22:05 
QuestionOutlook Addin Pin
Member 36453113-Nov-08 6:03
Member 36453113-Nov-08 6:03 
AnswerRe: Outlook Addin Pin
Rajasekharan Vengalil4-Nov-08 10:19
Rajasekharan Vengalil4-Nov-08 10:19 
AnswerRe: Outlook Addin Pin
Randor 5-Nov-08 10:30
professional Randor 5-Nov-08 10:30 
QuestionNot sure how to do this(or if you can), COM object and vb6 and c++ stuff Pin
Matthew Cash1-Nov-08 11:42
Matthew Cash1-Nov-08 11:42 
AnswerRe: Not sure how to do this(or if you can), COM object and vb6 and c++ stuff Pin
Rajasekharan Vengalil4-Nov-08 10:15
Rajasekharan Vengalil4-Nov-08 10:15 
GeneralRe: Not sure how to do this(or if you can), COM object and vb6 and c++ stuff Pin
Matthew Cash4-Nov-08 18:48
Matthew Cash4-Nov-08 18:48 
QuestionCOM/DCOM singleton behavior not working [modified] Pin
ToriHino200830-Oct-08 11:31
ToriHino200830-Oct-08 11:31 
Questionbatch file writting commands Pin
coloradopad28-Oct-08 17:57
coloradopad28-Oct-08 17:57 
QuestionISpoolerHook Pin
Dr. Kelwin28-Oct-08 14:47
Dr. Kelwin28-Oct-08 14:47 
QuestionEditable datagrid validation. Pin
udaykatakam27-Oct-08 9:36
udaykatakam27-Oct-08 9:36 
QuestionHow to regsvr32 ***.ocx successful? Pin
huangdingjun25-Oct-08 16:29
huangdingjun25-Oct-08 16:29 
AnswerRe: How to regsvr32 ***.ocx successful? Pin
Wes Aday25-Oct-08 19:00
professionalWes Aday25-Oct-08 19:00 
GeneralRe: How to regsvr32 ***.ocx successful? Pin
huangdingjun27-Oct-08 1:26
huangdingjun27-Oct-08 1:26 
GeneralRe: How to regsvr32 ***.ocx successful? Pin
Rajasekharan Vengalil4-Nov-08 9:29
Rajasekharan Vengalil4-Nov-08 9:29 
QuestionVB 6, ASP and COM Pin
indian14322-Oct-08 23:31
indian14322-Oct-08 23:31 
QuestionSystem.OutOfMemoryException: Retrieving the COM class factory for component with CLSID {29131539-2EED-1069-BF5D-00DD011186B7} failed due to the following error: 8007000e. Pin
blakshmi21-Oct-08 22:44
blakshmi21-Oct-08 22:44 
AnswerRe: System.OutOfMemoryException: Retrieving the COM class factory for component with CLSID {29131539-2EED-1069-BF5D-00DD011186B7} failed due to the following error: 8007000e. Pin
User 21559724-Oct-08 0:16
User 21559724-Oct-08 0: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.