Answers

Question and Answer:

  Home  COM DCOM

⟩ How to create an instance of the object in COM?

To create the instance of COM componet use the following

WIN32 APIs

To access the component that was there in local system use

following API

CoCreateInstance(clsid,NULL(used for

aggregation),CLSCTX_ALL,Interface_GUID,(void**)

&pRequestedInterface );

To access the COM componet remotely use the following API

CoCreateInstanceEx

(CLSID,NULL,CLSCTX_ALL,COSERVERINFO,Interface_GUID,MULTI_QI*

);

 203 views

More Questions for you: