Click here to Skip to main content
15,915,873 members
Home / Discussions / COM
   

COM

 
AnswerRe: Releasing a com interface Pin
Erik Midtskogen20-Jun-07 12:36
Erik Midtskogen20-Jun-07 12:36 
QuestionDifference between COM and DLL Pin
Karismatic19-Jun-07 1:24
Karismatic19-Jun-07 1:24 
AnswerRe: Difference between COM and DLL Pin
Steve S21-Jun-07 2:05
Steve S21-Jun-07 2:05 
AnswerRe: Difference between COM and DLL Pin
CPallini24-Jun-07 20:38
mveCPallini24-Jun-07 20:38 
QuestionProblem facing with connection points Pin
Raj Prathap17-Jun-07 21:05
Raj Prathap17-Jun-07 21:05 
AnswerRe: Problem facing with connection points Pin
HakunaMatada20-Jun-07 19:38
HakunaMatada20-Jun-07 19:38 
GeneralRe: Problem facing with connection points Pin
Raj Prathap20-Jun-07 21:52
Raj Prathap20-Jun-07 21:52 
QuestionConfused about queryinterface and cocreateinstance Pin
sawerr17-Jun-07 20:39
sawerr17-Jun-07 20:39 
Hi
I am trying to understand relation between queryinterface and cocretaeinstance. I read so many things still dont understand.

(For cocretaeinstance) In MSDN it says:
"This function creates on the local system a single uninitialized object of the class associated with a specified class identifier. "

I understand that
We use cocreateinstance to take instance for a class and we query for a supported interface with queryinterface.

But if we use COM for using Interface instead of class object.
So why do we take instance of a class? Isn't concept of COM using Interface instead of class object. So hiding implemantion details and avoiding name mangling etc... So why do we take a class object?

I dont understand here.

In what conditions do we need/use cocretaeinstance and queryinterface together? And in what conditions one of them is enough?
I hope i could explain the problem.
I am looking for your answers
Thanks.

AnswerRe: Confused about queryinterface and cocreateinstance Pin
cool_raja19-Jun-07 21:04
cool_raja19-Jun-07 21:04 
AnswerRe: Confused about queryinterface and cocreateinstance Pin
Steve S20-Jun-07 1:46
Steve S20-Jun-07 1:46 
GeneralRe: Confused about queryinterface and cocreateinstance Pin
sawerr20-Jun-07 3:04
sawerr20-Jun-07 3:04 
QuestionCLSID Pin
Rose8116-Jun-07 16:14
Rose8116-Jun-07 16:14 
QuestionThird-party COM Pin
Gregory Mermoud16-Jun-07 14:27
Gregory Mermoud16-Jun-07 14:27 
QuestionDLL Registration Pin
Rose8116-Jun-07 2:21
Rose8116-Jun-07 2:21 
Questiontype library generation Pin
ttomanek14-Jun-07 21:53
ttomanek14-Jun-07 21:53 
AnswerRe: type library generation Pin
ttomanek15-Jun-07 3:04
ttomanek15-Jun-07 3:04 
QuestionExport to Excel via VB.NET 1.1 Not Working [modified] Pin
Brendan Vogt14-Jun-07 20:48
Brendan Vogt14-Jun-07 20:48 
AnswerRe: Export to Excel via VB.NET 1.1 Not Working Pin
HakunaMatada20-Jun-07 19:42
HakunaMatada20-Jun-07 19:42 
Questioncode for representing "Events" for a custom control in classic ASP Pin
MurtyINM14-Jun-07 19:59
MurtyINM14-Jun-07 19:59 
Questionwhy can't be CoCreateInstance after install to COM+ app? Pin
Chen Jiadong13-Jun-07 20:56
Chen Jiadong13-Jun-07 20:56 
QuestionConnection points for Chat server using ATL/COM Pin
Raj Prathap12-Jun-07 20:37
Raj Prathap12-Jun-07 20:37 
QuestionA bit of help requested for an IE BHO Pin
keesp12-Jun-07 11:48
keesp12-Jun-07 11:48 
QuestionError info of FileSystemObject Pin
Lane Yu11-Jun-07 4:12
Lane Yu11-Jun-07 4:12 
AnswerRe: Error info of FileSystemObject Pin
Steve S11-Jun-07 6:47
Steve S11-Jun-07 6:47 
GeneralRe: Error info of FileSystemObject Pin
Lane Yu12-Jun-07 2:47
Lane Yu12-Jun-07 2:47 

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.