Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1.                 _bstr_t name;
  2.                 if(chat->Type == Skype::chatTypeDialog || chat->Type == Skype::chatTypeLegacyDialog)
  3.                     name = chat->FriendlyName.copy();
  4.                 else
  5.                     name = chat->Topic.copy();
  6.                
  7.                 BSTR strEnd = StrStr(name.GetBSTR(), L"|");
  8.                 if(strEnd != NULL) {
  9.                     *strEnd = L'\0';
  10.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement