Solved

DWORD to CSTRING

Posted on 2001-06-16
3
7,218 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
  • 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 10 total points
ID: 6199995
If you got your answer, please accept as answer.
Thanks
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
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 viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

708 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

11 Experts available now in Live!

Get 1:1 Help Now