Solved

DWORD to CSTRING

Posted on 2001-06-16
3
7,221 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

821 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