470,647 Members | 1,212 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

string class in Microsoft visual Studio 2005

Hi!
I am developing under Microsoft visual Studio 2005 in C++.
In my code I use the std:: string class and when I compile I don't
have any mistakes. However, when I debug my program (with
breakpoints) and i try to see the content of my std:: strings , i get
this comment : "undefined value", that means that this
type(std::string) compiles but doesn't work since i don't get real
values in it...
Then, I decided to use the System :: String class, but the problem is
: when u use this kind of strings in a class, this class has to be
managed...which isn't the case for me (unmanaged code) and i really
don't want to turn my code into managed code.

My question is : What can i do to keep unmanaged code and to use a
string class that works ?

Sincerely

bor_kev
*---------------------------------*
Posted at: http://www.GroupSrv.com
*---------------------------------*

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 17 '05 #1
1 1838

"bor_kev" <et******@poste.isima-dot-fr.no-spam.invalid> skrev i
meddelandet news:42********@127.0.0.1...
Hi!
I am developing under Microsoft visual Studio 2005 in C++.
In my code I use the std:: string class and when I compile I don't
have any mistakes. However, when I debug my program (with
breakpoints) and i try to see the content of my std:: strings , i get
this comment : "undefined value", that means that this
type(std::string) compiles but doesn't work since i don't get real
values in it...
Then, I decided to use the System :: String class, but the problem is
: when u use this kind of strings in a class, this class has to be
managed...which isn't the case for me (unmanaged code) and i really
don't want to turn my code into managed code.

My question is : What can i do to keep unmanaged code and to use a
string class that works ?


The std::string works very well, the debugger might not. Thought this
would have been fixed by now!

sdt::string stores the value in different ways depending on how long the
string is. If you look inside the string, you will find the value either
in _Bx._Buf or at the location pointed to by _Bx._Ptr.

Bo Persson
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by John Smith | last post: by
reply views Thread by Herman Jones | last post: by
2 posts views Thread by thersitz | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.