This is the situation, I wonder the reason.
in .c file this works properly
vciDeviceOpen(&sInfo.VciObjectId, &hDevice);
and this gives error :error C2440: 'function' : cannot convert from 'VCIID' to 'REFVCIID'
vciDeviceOpen(sInfo.VciObjectId, &hDevice);
but in .cpp file this works properly
vciDeviceOpen(sInfo.VciObjectId, &hDevice);
and this gives error :error C2664: 'vciDeviceOpen' : cannot convert parameter 1 from 'VCIID *' to 'REFVCIID'
vciDeviceOpen(&sInfo.VciObjectId, &hDevice);