What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Bug in plugin support?

Bug in plugin support?
Author: Message:
allex87
Junior Member
**

Avatar
Hmmm...

Posts: 99
36 / Male / –
Joined: Jul 2003
RE: Bug in plugin support?
maybe because if the message length is longer than 1100 (i think thats maximum), the program will crash...but.. to work around it, just set a strlen if...

size_t len;
len = strlen(sCommandArg);
if (len < 1094)
{
   //do whatever you want
}
else
{
  MessageBox(NULL, "Maximum message length exceeded!", "WARNING!", MB_OK);
}

If u do the math (and i hope i did it correctly.. :P).. considering the message length should not exceed 1100 chars... the /xcopy command has 6 characters +1 space, so 7 (no null). Next, your full message can only be 1001(with null) - 7 = 1094... ;)
[Image: signature.gif]
07-08-2003 08:43 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Bug in plugin support? - by Finn on 07-08-2003 at 07:40 PM
RE: Bug in plugin support? - by allex87 on 07-08-2003 at 08:43 PM
RE: Bug in plugin support? - by Finn on 07-08-2003 at 09:43 PM
RE: Bug in plugin support? - by Patchou on 07-08-2003 at 11:55 PM
RE: Bug in plugin support? - by Finn on 07-09-2003 at 07:10 AM
RE: Bug in plugin support? - by Bamboe on 07-09-2003 at 11:55 AM
RE: Bug in plugin support? - by Whacko on 07-09-2003 at 12:09 PM
RE: Bug in plugin support? - by Finn on 07-09-2003 at 05:24 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