int lol=wParam;
const char result[]={lol,""};
--I put the "" in there because else the value had some weird stuff in it -.-'
MessageBox(0,result,"blah",MB_OKCANCEL);
i bet it cause a few memory overwrites and soon gonna crash my cmputer but at least it worked :3
Read this article: http://cplusplus.com/articles/numb_to_text/ . The very first example in the article shows how to do it. Combine that with the example I gave in my previous post.
Also, per the other article I linked, MessageBox takes a LPCTSTR, not a LPCSTR, so you should either be using TCHARs, or calling MessageBoxA instead of MessageBox()