What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » trouble with strings [C++]

trouble with strings [C++]
Author: Message:
TheBlasphemer
Senior Member
****

Avatar

Posts: 714
Reputation: 47
37 / – / –
Joined: Mar 2004
RE: trouble with strings [C++]
Ok, my two cents, how about reading up on the C or C++ language before just trying to bash in code?
RtlCopyMemory is *not* the proper way to copy a string, &buffer[0] is useless, just hard-coding the value 10 is nonsense too, as this indicates the length of the data to be copied, not the size of the destination block :/
Go read some C tutorials, especially focus on pointers and arrays, and after that try to write a proper program. If you continue just trying like this, you will end up with a DLL full of buffer overflows, faulty pointers, messed up stacks, and it will not be stable and if used with data retrieved from the net, it will probably be a huge security risk too...
[Image: theblasp.png]
06-10-2007 12:05 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
trouble with strings [C++] - by cooldude_i06 on 06-08-2007 at 03:40 AM
RE: trouble with strings [C++] - by TazDevil on 06-08-2007 at 07:49 AM
RE: trouble with strings [C++] - by cooldude_i06 on 06-09-2007 at 08:54 AM
RE: trouble with strings [C++] - by vikke on 06-09-2007 at 09:07 AM
RE: trouble with strings [C++] - by cooldude_i06 on 06-09-2007 at 08:29 PM
RE: RE: trouble with strings [C++] - by TazDevil on 06-09-2007 at 08:44 PM
RE: trouble with strings [C++] - by cooldude_i06 on 06-09-2007 at 10:29 PM
RE: trouble with strings [C++] - by CookieRevised on 06-10-2007 at 03:06 AM
RE: RE: trouble with strings [C++] - by cooldude_i06 on 06-10-2007 at 07:06 AM
RE: trouble with strings [C++] - by TheBlasphemer on 06-10-2007 at 12:05 PM
RE: trouble with strings [C++] - by cooldude_i06 on 06-10-2007 at 09:09 PM
RE: trouble with strings [C++] - by -dt- on 06-11-2007 at 04:10 AM
RE: trouble with strings [C++] - by cooldude_i06 on 06-11-2007 at 07:34 AM


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