-
October 7th, 2012, 04:27 AM
#1
Run-Time Check Failure #2
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 this 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."
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|