DDX_Text embedding nulls on UpdateData(TRUE)
-
I have three controls in my Modal Dialog there are EDITTEXT and the Variables I am using are CString After the modal Dialog Box comes in my OnOk I do an UpdateData(TRUE) the data I enter is 2E000 however when it is returned between every character there is a Null so it would be in hex 32004500300030 this happens with all the varaible thanks
-
I have three controls in my Modal Dialog there are EDITTEXT and the Variables I am using are CString After the modal Dialog Box comes in my OnOk I do an UpdateData(TRUE) the data I enter is 2E000 however when it is returned between every character there is a Null so it would be in hex 32004500300030 this happens with all the varaible thanks
One word.
UNICODE
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
-
One word.
UNICODE
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
-
It depends what you are trying to do with the content of the string. The CString is using Unicode, so presumably, the entire application is also. And you cannot (easily) change one part of the application without affecting other elements.
-
Yes that will work fine, but you really need to consider why your application is using Unicode in the first place.
Richard I have a lot of my pieces in place from my windows client debugger setting breakpoints stepping thru code I just created this project to finish off the last piece displaying modifying storage As whenever I have to re-test in my development project I have to reinit my machine ( long story) don’t know how I unicode got set Thanks for your help
-
Richard I have a lot of my pieces in place from my windows client debugger setting breakpoints stepping thru code I just created this project to finish off the last piece displaying modifying storage As whenever I have to re-test in my development project I have to reinit my machine ( long story) don’t know how I unicode got set Thanks for your help