Using wsprintf () problem

DWORD Var;
wsprintf(Text,"Var value:%(32bit)",Var);
SetWindowText(hwnd,Text);
>>How can I print an 32 bit value<< ?, Its not a problem printing integers: printf("%d",integer01);
win32Asked:
Who is Participating?
 
AlexVirochovskyConnect With a Mentor Commented:
DWORD Var;
wsprintf(Text, "Var : %ld", Var);
0
 
win32Author Commented:
Using %ld gives negative numbers, how is that an option, when %ld is unsigned ???
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.