Hello, I am attempting to convert a CString variable (strTemp, which is coming from an edit control) into a WORD (m_cmd, aka unsigned short). I have been trying to figure this out for over a week now and have come to nothing.
I am familiar with sscanf and was using:
sscanf_s(strTemp, "%x", &m_cmd);
However, %x is used for DWORDS, and every time I would use this, it would overwrite whatever m_cmd was next to in the stack.
Thanks in advance!
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
I am familiar with sscanf and was using:
sscanf_s(strTemp, "%x", &m_cmd);
However, %x is used for DWORDS, and every time I would use this, it would overwrite whatever m_cmd was next to in the stack.
Thanks in advance!
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.