initial a string why this new string has strange character at begin [modified]
-
i build a new MFC project using a string to initial a new string mm code is
string mm = "abc";
debug mode mm will be "abc"; but in release mm will be "`v;" when in debug mode it will be ok see below photo:but when in release it will no right see below;
why does that happen can help me by the way how to upload photo in codeproject thank you
modified on Tuesday, April 28, 2009 3:29 AM
-
i build a new MFC project using a string to initial a new string mm code is
string mm = "abc";
debug mode mm will be "abc"; but in release mm will be "`v;" when in debug mode it will be ok see below photo:but when in release it will no right see below;
why does that happen can help me by the way how to upload photo in codeproject thank you
modified on Tuesday, April 28, 2009 3:29 AM
Debugging Release version, built without debugging info, may lead to apparently strange results, I believe. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Debugging Release version, built without debugging info, may lead to apparently strange results, I believe. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]You may add yourself to the list of contributers of the "CP's memorable quotes" list. :)
modified on Tuesday, April 28, 2009 4:20 AM
-
i build a new MFC project using a string to initial a new string mm code is
string mm = "abc";
debug mode mm will be "abc"; but in release mm will be "`v;" when in debug mode it will be ok see below photo:but when in release it will no right see below;
why does that happen can help me by the way how to upload photo in codeproject thank you
modified on Tuesday, April 28, 2009 3:29 AM
Maybe other codes bring memory error. BTW, you can use CString here.
Welcome to www.softwaretree.net! This website is generated completely by static html pages transforming technology. You can find many excellent audio/video tools there!
-
You may add yourself to the list of contributers of the "CP's memorable quotes" list. :)
modified on Tuesday, April 28, 2009 4:20 AM
Too kind man, too kind, indeed. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Maybe other codes bring memory error. BTW, you can use CString here.
Welcome to www.softwaretree.net! This website is generated completely by static html pages transforming technology. You can find many excellent audio/video tools there!
Why
CString
is supposed to behave better thanstd::string
there (everywhere)? :-DIf the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]