更新时间:2023-11-11 23:14:40
不,您不能将BSTR
强制转换为char*
.使用ConvertBSTRToString
.
请参阅 http://msdn.microsoft.com/en-us/library/ewezf1f6(v = VS.100).aspx [
No, you cannot cast aBSTR
to achar*
. UseConvertBSTRToString
.
See http://msdn.microsoft.com/en-us/library/ewezf1f6(v=VS.100).aspx[^]