where you are writting a string "Starting on %d" which is 14 characters length into a LPTSTR(which is an unsigned short*) alocated at a length of five.
Use LPSTR instead, or even better char*
Anyway I don't understand why are you working with the new/delete(on the heap).
If you were working on the stack with declarations like
char s[100]; you wouldn't have any problems
Hope this helps,
s-)
Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
the reason why is uID - 3000. if this value is greater then 9999 then it is 5 characters long giving you a string of 16 characters into an array of 15 characters.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.