Click here to Skip to main content
15,924,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual C++ 7.1 Subclassing Pin
Chris Losinger21-Oct-05 7:33
professionalChris Losinger21-Oct-05 7:33 
AnswerRe: Visual C++ 7.1 Subclassing Pin
Shog921-Oct-05 7:21
sitebuilderShog921-Oct-05 7:21 
AnswerRe: Visual C++ 7.1 Subclassing Pin
Tom Moore21-Oct-05 8:54
Tom Moore21-Oct-05 8:54 
GeneralRe: Visual C++ 7.1 Subclassing Pin
Shog921-Oct-05 13:29
sitebuilderShog921-Oct-05 13:29 
GeneralRe: Visual C++ 7.1 Subclassing Pin
Tom Moore21-Oct-05 14:12
Tom Moore21-Oct-05 14:12 
GeneralRe: Visual C++ 7.1 Subclassing Pin
Shog921-Oct-05 14:34
sitebuilderShog921-Oct-05 14:34 
Questionpad zero in front of long value? Pin
valerie9921-Oct-05 6:06
valerie9921-Oct-05 6:06 
QuestionRe: pad zero in front of long value? Pin
David Crow21-Oct-05 7:13
David Crow21-Oct-05 7:13 
I'm not sure why you asked a Java question in a C++ forum.

valerie99 wrote:
when the string got convert to long, it lost the leading zero, could it just be padded back...


No. Numbers with leading zeros are for display purposes only. If you had:

char *szNumber = "01234";
and you assigned that to a long via:

long lNumber = atol(szNumber);
why would you want lNumber to be equal to 01234 instead of 1234?


"Take only what you need and leave the land as you found it." - Native American Proverb


AnswerRe: pad zero in front of long value? Pin
valerie9921-Oct-05 7:54
valerie9921-Oct-05 7:54 
AnswerRe: pad zero in front of long value? Pin
valerie9921-Oct-05 7:54
valerie9921-Oct-05 7:54 
QuestionRe: pad zero in front of long value? Pin
David Crow21-Oct-05 8:51
David Crow21-Oct-05 8:51 
Answerthe number is used for citycode lookup Pin
valerie9921-Oct-05 9:30
valerie9921-Oct-05 9:30 
AnswerRe: pad zero in front of long value? Pin
bugDanny21-Oct-05 7:32
bugDanny21-Oct-05 7:32 
QuestionPlease Help me again.... Pin
NSoft21-Oct-05 4:28
NSoft21-Oct-05 4:28 
AnswerRe: Please Help me again.... Pin
Smith#21-Oct-05 6:03
Smith#21-Oct-05 6:03 
QuestionCEdit ctrl-c, ctrl-v doesn't work on a CFormView derived window Pin
TheRincewind21-Oct-05 3:47
TheRincewind21-Oct-05 3:47 
QuestionRe: CEdit ctrl-c, ctrl-v doesn't work on a CFormView derived window Pin
David Crow21-Oct-05 5:26
David Crow21-Oct-05 5:26 
AnswerRe: CEdit ctrl-c, ctrl-v doesn't work on a CFormView derived window Pin
TheRincewind21-Oct-05 6:02
TheRincewind21-Oct-05 6:02 
QuestionScheduler Pin
karmendra_js21-Oct-05 2:56
karmendra_js21-Oct-05 2:56 
AnswerRe: Scheduler Pin
David Crow21-Oct-05 3:03
David Crow21-Oct-05 3:03 
AnswerRe: Scheduler Pin
Eytukan21-Oct-05 5:58
Eytukan21-Oct-05 5:58 
QuestionWindows service Pin
Ankit Aneja21-Oct-05 1:24
Ankit Aneja21-Oct-05 1:24 
AnswerRe: Windows service Pin
Mircea Puiu21-Oct-05 2:08
Mircea Puiu21-Oct-05 2:08 
GeneralRe: Windows service Pin
Ankit Aneja21-Oct-05 2:12
Ankit Aneja21-Oct-05 2:12 
QuestionSDI/MDI interface Pin
benjnp21-Oct-05 1:23
benjnp21-Oct-05 1:23 

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.