Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ComboBox sorting Pin
David Crow25-Jun-10 9:39
David Crow25-Jun-10 9:39 
GeneralRe: ComboBox sorting Pin
raju_shiva28-Jun-10 0:24
raju_shiva28-Jun-10 0:24 
GeneralRe: ComboBox sorting Pin
Anand Todkar28-Jun-10 0:42
Anand Todkar28-Jun-10 0:42 
GeneralRe: ComboBox sorting Pin
raju_shiva28-Jun-10 1:17
raju_shiva28-Jun-10 1:17 
QuestionHow to convert from Decimal to Ascii or Binary to ascii? Pin
Le@rner24-Jun-10 21:45
Le@rner24-Jun-10 21:45 
AnswerRe: How to convert from Decimal to Ascii or Binary to ascii? PinPopular
Cedric Moonen24-Jun-10 21:49
Cedric Moonen24-Jun-10 21:49 
GeneralRe: How to convert from Decimal to Ascii or Binary to ascii? Pin
Le@rner24-Jun-10 21:54
Le@rner24-Jun-10 21:54 
GeneralRe: How to convert from Decimal to Ascii or Binary to ascii? Pin
Cedric Moonen24-Jun-10 22:00
Cedric Moonen24-Jun-10 22:00 
It seems that you are confused about hexadecimal and binary notations. Those are only representations of a number, and they don't have any influence on the number. In your example, t has a value of 86 (decimal), 0x56 (hexa) and 0b01010110(binary). These are different representations of the same number. So, your question is wrong, you simply want to convert a number to it's corresponding ASCII representation.

For that part, it is easy: simply store the value in a character and print it. It will be automatically displayed as a character (thus, using the symbol in the ASCII table).
But, where do you want to display this character ? Because here also, the ASCII representation is just a way to represent a character. The value contained in the variable doesn't change (it is still 86).
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

AnswerRe: How to convert from Decimal to Ascii or Binary to ascii? Pin
CPallini24-Jun-10 21:52
mveCPallini24-Jun-10 21:52 
GeneralRe: How to convert from Decimal to Ascii or Binary to ascii? Pin
Le@rner24-Jun-10 21:58
Le@rner24-Jun-10 21:58 
GeneralRe: How to convert from Decimal to Ascii or Binary to ascii? Pin
CPallini24-Jun-10 22:01
mveCPallini24-Jun-10 22:01 
GeneralRe: How to convert from Decimal to Ascii or Binary to ascii? Pin
Le@rner24-Jun-10 22:13
Le@rner24-Jun-10 22:13 
AnswerRe: How to convert from Decimal to Ascii or Binary to ascii? Pin
Richard MacCutchan24-Jun-10 23:23
mveRichard MacCutchan24-Jun-10 23:23 
QuestionI need to implement "Pages Per Sheet" option in my Print Dialog Pin
She_Jack24-Jun-10 21:30
She_Jack24-Jun-10 21:30 
AnswerRe: I need to implement "Pages Per Sheet" option in my Print Dialog Pin
Richard MacCutchan24-Jun-10 23:18
mveRichard MacCutchan24-Jun-10 23:18 
GeneralRe: I need to implement "Pages Per Sheet" option in my Print Dialog Pin
She_Jack25-Jun-10 2:01
She_Jack25-Jun-10 2:01 
QuestionI2C Communication Pin
shakils24-Jun-10 21:05
shakils24-Jun-10 21:05 
AnswerRe: I2C Communication Pin
Peter_in_278024-Jun-10 21:36
professionalPeter_in_278024-Jun-10 21:36 
AnswerRe: I2C Communication Pin
Parthiban25-Jun-10 0:08
Parthiban25-Jun-10 0:08 
AnswerRe: I2C Communication Pin
LittleYellowBird25-Jun-10 0:52
LittleYellowBird25-Jun-10 0:52 
QuestionHow to convert from Hex to Ascii? Pin
Le@rner24-Jun-10 20:43
Le@rner24-Jun-10 20:43 
AnswerRe: How to convert from Hex to Ascii? Pin
«_Superman_»24-Jun-10 20:49
professional«_Superman_»24-Jun-10 20:49 
AnswerRe: How to convert from Hex to Ascii? Pin
Cedric Moonen24-Jun-10 20:52
Cedric Moonen24-Jun-10 20:52 
GeneralRe: How to convert from Hex to Ascii? Pin
Le@rner24-Jun-10 22:14
Le@rner24-Jun-10 22:14 
QuestionAdding popmenu to ListCtrl Pin
Sakhalean24-Jun-10 20:03
Sakhalean24-Jun-10 20:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.