| 1. |
How To Create An Instance Of The Object In Com? |
|
Answer» 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* ); 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* ); |
|