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);

 

你可能感兴趣的:(long)