Hi
I am trying to replace all DCML calls to DFC in C++ code.
I have following code in C++ module but it is failing.. please guide me to resolve the issue
IDfClientXPtr pClientX(__uuidof(DfClientX));
IDfCollectionPtr col; //Collection for the result
IDfQueryPtr q = pClientX->getQuery(); //Create query object
IDfClientPtr pClient = pClientX->getLocalClient();
//Initialize the session
pSession = pClient->findSession((LPCSTR)sessionID);
_bstr_t queryString = (_bstr_t)getCmd;
q->setDQL(queryString); //Give it the query
q->setBatchSize(0);
col = q->execute(pSession, DFCLib::IDfQuery_DF_QUERY);
_bstr_t query = (_bstr_t)getCmd;
IDfIdPtr idPtr = pSession->getIdByQualification(query);
//Set the object Id to the structure
objId = (StringT)(LPSTR)idPtr->getId();
Where getCmd=
readquery,s0,select all r_object_id, object_name, fsb_model from fsb_component(all) where object_name like '<FMFileName>%' and r_lock_owner=USER