?
Solved

DWORD to CSTRING

Posted on 2001-06-16
3
Medium Priority
?
7,225 Views
Last Modified: 2012-06-27
Hi,

Just making a stab at learning VC++. What's the way to convert a DWORD to CSTRING??

Cheers

Rich
0
Comment
Question by:RichJackson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 30

Expert Comment

by:Axter
ID: 6198683
You can use the Format function.
Example:
DWORD anumber = 12345678;
CString mystring;
mystring.Format("%i",anumber);
0
 

Author Comment

by:RichJackson
ID: 6199628
Cheers, just what i wanted. THANKS
0
 
LVL 30

Accepted Solution

by:
Axter earned 40 total points
ID: 6199995
If you got your answer, please accept as answer.
Thanks
0

Featured Post

Introducing Priority Question

Increase expert visibility of your issues by participating in Priority Question, our latest feature for Premium and Team Account holders. Adjust the priority of your question to get emergent issues in front of subject-matter experts for help when you need it most.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

743 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