Re: Get ASCII value for character when higher than 127
- From: MrAsm <mrasm@xxxxxxx>
- Date: Fri, 25 May 2007 20:25:50 GMT
On Fri, 25 May 2007 10:45:56 -0500, David Wilkinson
<no-reply@xxxxxxxxxxxx> wrote:
char path[80];
strcpy (path,"C:\\pwds\\");
strcat (path,timeString);
strcat (path,".txt");
char xmlmsg[200];
strcpy (xmlmsg,"<userpwd><username>");
strcat (xmlmsg,usernameStr);
strcat (xmlmsg,"</username><password>");
strcat (xmlmsg,passwordStr);
strcat (xmlmsg,"</password></userpwd>");
Sandra:
A few things I notice:
To add to David's notes, I would deprecate the use of char buffer and
strcpy and strcat... better using std::ostringstream and operator <<
or at least the safe versions of str... functions (when you specify
the buffer size to avoid buffer overruns).
MrAsm
.
- References:
- Get ASCII value for character when higher than 127
- From: ssetz
- Re: Get ASCII value for character when higher than 127
- From: Ben Voigt
- Re: Get ASCII value for character when higher than 127
- From: ssetz
- Re: Get ASCII value for character when higher than 127
- From: David Wilkinson
- Get ASCII value for character when higher than 127
- Prev by Date: Re: Not enough storage is available to process this command?
- Next by Date: can vc++2005 make a dll file that not relay on msvcr80.dll?
- Previous by thread: Re: Get ASCII value for character when higher than 127
- Next by thread: Re: Get ASCII value for character when higher than 127
- Index(es):
Relevant Pages
|