VC++ 6.0 Professional Edition
I've got a class that correctly reports the XOR value of a string. I report
the XOR value of the string and also it's length. lets say my string length
is 96 characters, shall we? The program reports String Len = 96 and the
correct XOR value of the string I entered.
Then I clear the CString object via a 'Clear' button (I know it's lame, but
work with me here.):
void CXor_ValuesDlg::OnClear() // My clear button
m_cCreateChkSum.EnableWindow( TRUE );
m_iXorrec = 0;
UpdateData( FALSE );
and enter the same string to analyze again (For giggles -- I could enterQuote:}
anything but get similar results).
It reports the string length to be String Len = '9696' with the correct XOR
value. My length isn't being cleared properly. I could also get '9636' if
my second string was 36 characters long.
And so on and so forth. If I continue on I'll eventually get String Len =
It correctly clears the contents of m_sEvalString, I know, because I have a
check on the CreateChkSum Value button to ensure string length is not zero
(0) and if I don't enter anything, it tells me so (Only when I haven't
any previous data.).
So, there you have it. Could someone help me out, please? This is my first
'real' Windows program (In that is does something _useful_ for me!). I've
got one version that is pretty good, but, I'd like to 'enhance' it a little.
(Typical programmer, nothing is ever done.)