Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPlease Help! c++ newbie Pin
Pete Forster23-Feb-03 5:30
sussPete Forster23-Feb-03 5:30 
GeneralRe: Please Help! c++ newbie Pin
valikac23-Feb-03 7:46
valikac23-Feb-03 7:46 
GeneralRe: Please Help! c++ newbie Pin
Pete Forster23-Feb-03 9:01
sussPete Forster23-Feb-03 9:01 
GeneralRe: Please Help! c++ newbie Pin
Christian Graus23-Feb-03 9:59
protectorChristian Graus23-Feb-03 9:59 
GeneralRe: Please Help! c++ newbie Pin
Big Art23-Feb-03 10:23
Big Art23-Feb-03 10:23 
Generalconvert CString to HEX Pin
afender23-Feb-03 3:48
afender23-Feb-03 3:48 
GeneralRe: convert CString to HEX Pin
Abin23-Feb-03 4:13
Abin23-Feb-03 4:13 
GeneralRe: convert CString to HEX Pin
Gary R. Wheeler23-Feb-03 4:42
Gary R. Wheeler23-Feb-03 4:42 
What do you mean?

If you want to 'dump' the contents of a CString as hex, you could do the following:
CString string;
//...
for (int = 0; i < string.GetLength(); i++) {
#if defined UNICODE
    printf("%04X",string[i]);
#else
    printf("%02X",(unsigned)string[i]);
#endif
}

If your CString contains a hex value, and you want to convert it to an integer,
CString string = "1234ABCD";
int value;
sscanf(string,"%x",&value);



Software Zen: delete this;
Generalcheck box Pin
dudic23-Feb-03 1:05
dudic23-Feb-03 1:05 
GeneralRe: check box Pin
Hans Ruck23-Feb-03 3:28
Hans Ruck23-Feb-03 3:28 
QuestionHow to use Microsoft Layer for Unicode with MFC app Pin
Valera24117623-Feb-03 0:03
Valera24117623-Feb-03 0:03 
AnswerRe: How to use Microsoft Layer for Unicode with MFC app Pin
dan o23-Feb-03 23:32
dan o23-Feb-03 23:32 
GeneralBitmaps again... Pin
Dennis L22-Feb-03 22:46
Dennis L22-Feb-03 22:46 
GeneralRe: Bitmaps again... Pin
Joaquín M López Muñoz23-Feb-03 5:10
Joaquín M López Muñoz23-Feb-03 5:10 
GeneralRe: Bitmaps again... Pin
MAAK23-Feb-03 9:44
MAAK23-Feb-03 9:44 
GeneralSplitting a CString Pin
ROK_RShadow22-Feb-03 21:38
ROK_RShadow22-Feb-03 21:38 
GeneralRe: Splitting a CString Pin
Pavel Klocek23-Feb-03 1:25
Pavel Klocek23-Feb-03 1:25 
GeneralRe: Splitting a CString Pin
Big Art23-Feb-03 10:48
Big Art23-Feb-03 10:48 
GeneralRe: Splitting a CString Pin
ROK_RShadow23-Feb-03 12:36
ROK_RShadow23-Feb-03 12:36 
GeneralRe: Splitting a CString Pin
Big Art24-Feb-03 5:21
Big Art24-Feb-03 5:21 
GeneralNeed help on some weird errors Pin
Abin22-Feb-03 20:23
Abin22-Feb-03 20:23 
GeneralRe: Need help on some weird errors Pin
Michael Dunn22-Feb-03 20:35
sitebuilderMichael Dunn22-Feb-03 20:35 
Generalstoring and accessing file names from FindNextFile() Pin
kiken22-Feb-03 18:11
kiken22-Feb-03 18:11 
GeneralRe: storing and accessing file names from FindNextFile() Pin
valikac22-Feb-03 18:19
valikac22-Feb-03 18:19 
GeneralRe: storing and accessing file names from FindNextFile() Pin
Michael Dunn22-Feb-03 18:24
sitebuilderMichael Dunn22-Feb-03 18:24 

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.