Click here to Skip to main content
15,896,269 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOptimization Pin
Sibilant3-Aug-04 14:54
Sibilant3-Aug-04 14:54 
GeneralVisual C++ static member initialization Pin
Indrawati3-Aug-04 14:25
Indrawati3-Aug-04 14:25 
GeneralRe: Visual C++ static member initialization Pin
User 8348703-Aug-04 22:10
User 8348703-Aug-04 22:10 
GeneralRe: Visual C++ static member initialization Pin
cmk4-Aug-04 0:51
cmk4-Aug-04 0:51 
GeneralRe: Visual C++ static member initialization Pin
Indrawati4-Aug-04 15:09
Indrawati4-Aug-04 15:09 
QuestionHow to create a Point Custom Control Pin
StevenS_Dev3-Aug-04 13:28
StevenS_Dev3-Aug-04 13:28 
GeneralMultiline toolbar button Pin
blase_313-Aug-04 13:23
blase_313-Aug-04 13:23 
Generaltotal number digit in string name. Pin
pnpfriend3-Aug-04 11:43
pnpfriend3-Aug-04 11:43 
Hello all gurus..
If I want to create the string that contains given digit like 3 for 3 digit in the string, how should i done it?
To clear what I'm trying to say, here is an example.
CString prefix = "pf";
int numDigit = 6;
int startNum = 1;

CString k;
k.Format("%d%d",numDigit,startNum);
k = prefix + k;

the output that I want is:
k = "pf0001"

I know I'm doing it wrong.. coz the answer wasn't the one i want it and is there any other way instead of using for or while loop, counting numberDigit.



GeneralRe: total number digit in string name. Pin
Bhaskar4-Aug-04 0:37
Bhaskar4-Aug-04 0:37 
GeneralRe: total number digit in string name. Pin
Ivan Cachicatari4-Aug-04 4:02
Ivan Cachicatari4-Aug-04 4:02 
GeneralRe: total number digit in string name. Pin
pnpfriend4-Aug-04 4:56
pnpfriend4-Aug-04 4:56 
GeneralLoading Bitmaps Pin
Don123-Aug-04 10:57
Don123-Aug-04 10:57 
GeneralOpen With... Dialog in Windows Explorer Pin
otrcomm3-Aug-04 10:16
otrcomm3-Aug-04 10:16 
GeneralRe: Open With... Dialog in Windows Explorer Pin
palbano3-Aug-04 10:33
palbano3-Aug-04 10:33 
GeneralRe: Open With... Dialog in Windows Explorer Pin
otrcomm3-Aug-04 12:04
otrcomm3-Aug-04 12:04 
GeneralRe: Open With... Dialog in Windows Explorer Pin
palbano4-Aug-04 10:59
palbano4-Aug-04 10:59 
GeneralRe: Open With... Dialog in Windows Explorer Pin
otrcomm4-Aug-04 16:15
otrcomm4-Aug-04 16:15 
GeneralRe: Open With... Dialog in Windows Explorer Pin
palbano4-Aug-04 16:33
palbano4-Aug-04 16:33 
GeneralRe: Open With... Dialog in Windows Explorer Pin
otrcomm4-Aug-04 18:33
otrcomm4-Aug-04 18:33 
Generallooking for MS (?) MFC sample program. Pin
Maximilien3-Aug-04 10:05
Maximilien3-Aug-04 10:05 
GeneralRe: looking for MS (?) MFC sample program. Pin
Johan Rosengren3-Aug-04 10:43
Johan Rosengren3-Aug-04 10:43 
GeneralRe: looking for MS (?) MFC sample program. Pin
Maximilien3-Aug-04 13:43
Maximilien3-Aug-04 13:43 
Generalworld class newbie Pin
ilavos3-Aug-04 9:51
ilavos3-Aug-04 9:51 
GeneralRe: world class newbie Pin
palbano3-Aug-04 10:18
palbano3-Aug-04 10:18 
GeneralWaitForMultipleObjects().. Pin
Laing,James3-Aug-04 9:04
Laing,James3-Aug-04 9:04 

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.