Click here to Skip to main content
16,011,436 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to convert an decimal value to hexa decimal value Pin
Owner drawn19-Jan-06 23:11
Owner drawn19-Jan-06 23:11 
AnswerRe: How to convert an integer value to hexa value Pin
Stephen Hewitt20-Jan-06 19:40
Stephen Hewitt20-Jan-06 19:40 
QuestionConvert.ToInt32 ??? Pin
Identity Undisclosed19-Jan-06 22:47
Identity Undisclosed19-Jan-06 22:47 
AnswerRe: Convert.ToInt32 ??? Pin
Michael Dunn19-Jan-06 22:52
sitebuilderMichael Dunn19-Jan-06 22:52 
AnswerRe: Convert.ToInt32 ??? Pin
Cedric Moonen19-Jan-06 22:53
Cedric Moonen19-Jan-06 22:53 
GeneralRe: Convert.ToInt32 ??? Pin
Identity Undisclosed19-Jan-06 22:57
Identity Undisclosed19-Jan-06 22:57 
GeneralRe: Convert.ToInt32 ??? Pin
Cedric Moonen19-Jan-06 23:00
Cedric Moonen19-Jan-06 23:00 
AnswerRe: Convert.ToInt32 ??? Pin
Stephen Hewitt20-Jan-06 14:16
Stephen Hewitt20-Jan-06 14:16 
I would use a std::stringstream. Michael mentions it in his article but I couldn't see a hex example. Something this would do it:

stringstream ss("10"); // Remember in #include <sstream>
int num;
ss >> hex >> num;


I think that in general using the STL is cleaner and more maintainable then using the cryptically named CRT functions.

Steve

-- modified at 20:19 Friday 20th January, 2006

ADDED:
But you only get oct, dec and hex so if you need more the CRT style functions may the the way to go.
QuestionMulticolumns in CListBox Pin
Eytukan19-Jan-06 22:42
Eytukan19-Jan-06 22:42 
AnswerRe: Multicolumns in CListBox Pin
Michael Dunn19-Jan-06 22:54
sitebuilderMichael Dunn19-Jan-06 22:54 
GeneralRe: Multicolumns in CListBox Pin
Eytukan19-Jan-06 22:59
Eytukan19-Jan-06 22:59 
GeneralRe: Multicolumns in CListBox Pin
David Crow20-Jan-06 3:36
David Crow20-Jan-06 3:36 
AnswerRe: Multicolumns in CListBox Pin
ThatsAlok19-Jan-06 23:13
ThatsAlok19-Jan-06 23:13 
AnswerRe: Multicolumns in CListBox Pin
S Douglas20-Jan-06 0:24
professionalS Douglas20-Jan-06 0:24 
Questioncopy datas from one file to other file Pin
Anu_Bala19-Jan-06 22:33
Anu_Bala19-Jan-06 22:33 
AnswerRe: copy datas from one file to other file Pin
Cedric Moonen19-Jan-06 22:46
Cedric Moonen19-Jan-06 22:46 
QuestionRe: copy datas from one file to other file Pin
David Crow20-Jan-06 3:34
David Crow20-Jan-06 3:34 
QuestionHiding of dialogs Pin
nilesh.gawade19-Jan-06 22:30
nilesh.gawade19-Jan-06 22:30 
AnswerRe: Hiding of dialogs Pin
Cedric Moonen19-Jan-06 22:50
Cedric Moonen19-Jan-06 22:50 
GeneralRe: Hiding of dialogs Pin
Owner drawn19-Jan-06 22:59
Owner drawn19-Jan-06 22:59 
AnswerRe: Hiding of dialogs Pin
khan++20-Jan-06 0:01
khan++20-Jan-06 0:01 
QuestionSimple MFC App VS2005 Pin
S Douglas19-Jan-06 21:10
professionalS Douglas19-Jan-06 21:10 
AnswerRe: Simple MFC App VS2005 Pin
Cedric Moonen19-Jan-06 21:42
Cedric Moonen19-Jan-06 21:42 
GeneralRe: Simple MFC App VS2005 Pin
S Douglas19-Jan-06 22:09
professionalS Douglas19-Jan-06 22:09 
GeneralRe: Simple MFC App VS2005 Pin
Cedric Moonen19-Jan-06 22:11
Cedric Moonen19-Jan-06 22:11 

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.