Hi all,
Here is my code:
char scTemp[8];
unsigned short usCurrent;
m_ctEdTemp.GetWindowText(scTemp, 8);
sscanf(scTemp, "%u", &usCurrent);
Does anyone know what is wrong with that code (I'm sure it's a very basic mistake) ?
It throws me an error message:
"Run-Time Check Failure #2 - Stack around the variable 'usCurrent' was corrupted."
Last edited on