Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAAAAAAAAAAAAA heeeeeeeeelp :'( HARDDISK RUINED Pin
Kuniva7-Oct-03 9:21
Kuniva7-Oct-03 9:21 
GeneralRe: AAAAAAAAAAAAA heeeeeeeeelp :'( HARDDISK RUINED Pin
Toni787-Oct-03 9:57
Toni787-Oct-03 9:57 
GeneralRe: AAAAAAAAAAAAA heeeeeeeeelp :'( HARDDISK RUINED Pin
Kuniva7-Oct-03 11:10
Kuniva7-Oct-03 11:10 
GeneralRe: AAAAAAAAAAAAA heeeeeeeeelp :'( HARDDISK RUINED Pin
Toni787-Oct-03 11:21
Toni787-Oct-03 11:21 
GeneralRe: AAAAAAAAAAAAA heeeeeeeeelp :'( HARDDISK RUINED Pin
Kuniva8-Oct-03 4:33
Kuniva8-Oct-03 4:33 
GeneralRe: If you are really desperate Pin
Adam °Wimsatt7-Oct-03 11:19
Adam °Wimsatt7-Oct-03 11:19 
GeneralRe: AAAAAAAAAAAAA heeeeeeeeelp :'( HARDDISK RUINED Pin
Ogger1517-Oct-03 14:05
sussOgger1517-Oct-03 14:05 
GeneralAddstring in ListBox Pin
NewHSKid7-Oct-03 8:20
NewHSKid7-Oct-03 8:20 
Hi all,

Wanted to know if it is possible to both pad a hex numbers with leading 0's and also format the width of the message.

I have a string and i just concat a hex number to it. I just want to space out the numbers so that they will line up with the next string added, so that it has the look of a table.

Right now i am padding the hex number like this:
testStr.Format("%03X" , myString);
Str += testStr;
testStr.Format("%03X" , myString2);
Str += testStr;
Listbox.AddString(Str);

I know if i take away the 0, then it will set the width, but i need to do both. CAN THIS BE DONE?

thanks in advance.

Jimmy

Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)
GeneralRe: Addstring in ListBox Pin
JWood7-Oct-03 8:38
JWood7-Oct-03 8:38 
GeneralRe: Addstring in ListBox Pin
NewHSKid7-Oct-03 8:45
NewHSKid7-Oct-03 8:45 
GeneralContext Sensitive Help Pin
Azghar Hussain7-Oct-03 7:14
professionalAzghar Hussain7-Oct-03 7:14 
GeneralRe: Context Sensitive Help Pin
vcplusplus7-Oct-03 7:29
vcplusplus7-Oct-03 7:29 
GeneralRe: Context Sensitive Help Pin
Azghar Hussain8-Oct-03 4:34
professionalAzghar Hussain8-Oct-03 4:34 
GeneralRe: Context Sensitive Help Pin
vcplusplus8-Oct-03 5:16
vcplusplus8-Oct-03 5:16 
GeneralUSB Pin
Caoimh7-Oct-03 6:43
Caoimh7-Oct-03 6:43 
GeneralRe: USB Pin
Terry O'Nolley7-Oct-03 8:13
Terry O'Nolley7-Oct-03 8:13 
GeneralRe: USB Pin
Caoimh7-Oct-03 22:32
Caoimh7-Oct-03 22:32 
GeneralVisual C++ .NET 2003 and XP Style Pin
valikac7-Oct-03 6:04
valikac7-Oct-03 6:04 
GeneralMSDN Integration Pin
Xakep7-Oct-03 5:09
Xakep7-Oct-03 5:09 
GeneralRe: MSDN Integration Pin
David Crow7-Oct-03 6:55
David Crow7-Oct-03 6:55 
GeneralCWnd::OnKeyDown Pin
De Nardis Andrea7-Oct-03 5:08
De Nardis Andrea7-Oct-03 5:08 
GeneralRe: CWnd::onkeydown Pin
valikac7-Oct-03 5:50
valikac7-Oct-03 5:50 
GeneralRe: CWnd::onkeydown Pin
De Nardis Andrea7-Oct-03 8:03
De Nardis Andrea7-Oct-03 8:03 
GeneralHowto declare a dynamic double Array Pin
AnTri7-Oct-03 4:41
AnTri7-Oct-03 4:41 
GeneralRe: Howto declare a dynamic double Array Pin
Steve S7-Oct-03 5:12
Steve S7-Oct-03 5:12 

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.