What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! General » Msgplus tags in a webmessenger

Msgplus tags in a webmessenger
Author: Message:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Msgplus tags in a webmessenger
Here's some C(++) that I use to strip formatting codes in Phoenix (for toats); maybe you can base your code on it.
code:
void stripFormat(WCHAR *from, WCHAR *result) {
  wcscpy(result, L"\0");
  while (*from != L'\0') {
    if (*from == L'·') {
      from++;
      if (*from == L'$') {
        from++;
        if (*from <= L'9' && *from >= L'0') from++;
        if (*from <= L'9' && *from >= L'0') from++;
        if (*from == L'#') from+=7;
      }
      else if (*from == L'0' ||
        *from == L'\'' ||
        *from == L'@' ||
        *from == L'#' ||
        *from == L'&')
        from++;
      continue;
    }
    wcsncat(result, from, 1);
    from++;
  }
}
Edit: Please, please, please! Make code preserve tabs!

This post was edited on 11-28-2005 at 11:45 PM by RaceProUK.
[Image: spartaafk.png]
11-28-2005 11:42 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Msgplus tags in a webmessenger - by etiennea on 11-26-2005 at 03:52 PM
RE: Msgplus tags in a webmessenger - by RaceProUK on 11-28-2005 at 11:42 PM
RE: Msgplus tags in a webmessenger - by etiennea on 11-30-2005 at 03:10 PM
RE: Msgplus tags in a webmessenger - by -dt- on 11-30-2005 at 03:22 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On