[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

display a unsigned char value in a edit control

Posted on 1998-08-07
2
Medium Priority
?
257 Views
Last Modified: 2010-04-10
i try to display a unsigned char value in a CEdit control CFormView->CEdit.SetWindowText(value);
but SetWindowText methode accept just CString typ, how can i convert this value, if value=12 user
must see in dialog 12.
if i use a CStatic control how can i slove the same problem.

                                      best regards
0
Comment
Question by:saidi
[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
2 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 400 total points
ID: 1169596
CString strText;
strText.Format(_T("%u"), (unsigned int)value);
CFormView->CEdit.SetWindowText(value);

For CStatic, it is the same since you have got the CString.
0
 
LVL 23

Expert Comment

by:chensu
ID: 1169597
Sorry, it should have been

CString strText;
strText.Format(_T("%u"), (unsigned int)value);
CFormView->CEdit.SetWindowText(strText);

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

649 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