Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert DWord

Status
Not open for further replies.

unicorn11

Programmer
Jun 10, 2000
392
0
0
IN
How do I convert dword var to string LPCWSTR

thanks in advance!

regards
Abhishek

Unicorn11
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top