For Programmers: Free Programming Magazines  


Home > Archive > VC STL > March 2006 > Re: Visual C++ Express and std::string









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Visual C++ Express and std::string
David Lowndes

2006-03-28, 7:07 pm

>I've got a problem with a program I'm writing and attempting to use
>std::string. So I created a very small sample program below using the
>VC++ Express Console App template with all the default options. I've
>also attached the program output. It seems like the compiler is
>screwing up the std:string location and editing memory of the "a"
>variable.
>
>I don't seem to have this problem with the VC++ 2003 Toolkit (VC7.1),
>but I do with the Express edition (VC8.0).


Jeff,

I can't reproduce the problem with the full version of VS2005. Debug &
Release builds both produce the expected output.

>So am I doing something wrong?


Nothing wrong as far as I can see.

Dave
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com