char * bstr CComBSTR 转换

char* tmpDeviceList=NULL;
...
	

	CComBSTR  valret=tmpDeviceList;
	free(tmpDeviceList);

bstr result=valret.Copy();

你可能感兴趣的:(char * bstr CComBSTR 转换)