Solved

Using wsprintf () problem

Posted on 1999-01-26
2
320 Views
Last Modified: 2008-03-06
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);
0
Comment
Question by:win32
2 Comments
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 0 total points
ID: 1185225
DWORD Var;
wsprintf(Text, "Var : %ld", Var);
0
 

Author Comment

by:win32
ID: 1185226
Using %ld gives negative numbers, how is that an option, when %ld is unsigned ???
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Find boost header files using gnu make (MinGW) on Win 7 11 86
why "." vs "->" 23 120
Fast access to array, using indexes, smart iterative search 2 111
max float value 3 39
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now