LONG 转 CComBSTR

wchar_t* longStr = (wchar_t*) malloc(16*sizeof(wchar_t));
    swprintf(longStr, L"%d", this->m_longAuthority);     
    this->m_pToolTip->SetText(TEXT_KEY_RESULT,CComBSTR(longStr));
    free(longStr);

 

posted on 2015-06-11 14:05  aoun  阅读(198)  评论(0编辑  收藏  举报