Depends on what you want to achieve. If you want to see digits of a number as a text - use _ltow(). If you want to pass intentionally a DWORD argument to some common API function, requiring LPCWSTR - simply cast it: (LPCWSTR)your_dword_var . In this case you should by sure, that your callee will interprete your parameter as a number, not as a text string.
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.