none
BSTR * 转 BSTR RRS feed

答案

  • 你好:

          BSTR* ->BSTR  假设有BSRT* pb已初始化了。

    BSRT* pb;
    BSTR b;
    b=*pb;
    

          BSTR->BSTR*

    BSTR b;

    BSRT* pb; b=SysAllocString(L"Some text"); pb=&b;

    用了SysAllocString函数记得不用的时候用SysFreeString来释放资源。

      

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • 已标记为答案 Shu 2017 2014年9月26日 6:58
    2014年9月17日 10:56