Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Copying only first 12 chars of a string to another string? [modified] Pin
Lord Kixdemp13-Jun-06 4:26
Lord Kixdemp13-Jun-06 4:26 
GeneralRe: Copying only first 12 chars of a string to another string? [modified] Pin
Sebastian Schneider13-Jun-06 4:44
Sebastian Schneider13-Jun-06 4:44 
GeneralRe: Copying only first 12 chars of a string to another string? Pin
Justin Tay13-Jun-06 5:40
Justin Tay13-Jun-06 5:40 
AnswerRe: Copying only first 12 chars of a string to another string? Pin
Zac Howland13-Jun-06 4:43
Zac Howland13-Jun-06 4:43 
GeneralRe: Copying only first 12 chars of a string to another string? Pin
David Crow13-Jun-06 6:27
David Crow13-Jun-06 6:27 
GeneralRe: Copying only first 12 chars of a string to another string? Pin
Zac Howland13-Jun-06 9:04
Zac Howland13-Jun-06 9:04 
AnswerRe: Copying only first 12 chars of a string to another string? Pin
Eytukan13-Jun-06 4:45
Eytukan13-Jun-06 4:45 
GeneralRe: Copying only first 12 chars of a string to another string? [modified] Pin
Lord Kixdemp13-Jun-06 7:17
Lord Kixdemp13-Jun-06 7:17 
Crap... I'm not getting this at all... Doesn't freeing make the string NULL? How can I return/pass a null string? The only reason I'm using malloc() is to make the char* long enough to contain the other one... And, if I allocate only a certain amount of memory for a string, and I try to add something that's larger than that, why does it add it anyways without crashing? C is confusing... I'd be using C# if this app didn't require to work on DOS. But, hfry, why parse the file myself if the extension is always 3 chars? (plus the dot) Thanks you all!

And: VuNic, that code crashed Winders.

[edit] A few minutes later...
Now I really AM confused. If I only copy 8 characters, look at what I get:
is730enucrosoft é
...crosoft? Why is Microsoft involved here?! I got no "Microsoft" string in my whole freaking program!
But if I copy 9:
is730en
I have never been so confused in my life...
[/edit]

Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx

-- modified at 13:49 Tuesday 13th June, 2006
GeneralRe: Copying only first 12 chars of a string to another string? Pin
Justin Tay13-Jun-06 8:17
Justin Tay13-Jun-06 8:17 
GeneralRe: Copying only first 12 chars of a string to another string? Pin
Eytukan13-Jun-06 21:12
Eytukan13-Jun-06 21:12 
GeneralRe: Copying only first 12 chars of a string to another string? Pin
Lord Kixdemp14-Jun-06 15:24
Lord Kixdemp14-Jun-06 15:24 
QuestionHow to set Axes property in Excel Chart Pin
MikeRT13-Jun-06 3:54
MikeRT13-Jun-06 3:54 
QuestionFormView Color Pin
mikobi13-Jun-06 3:44
mikobi13-Jun-06 3:44 
AnswerRe: FormView Color [modified] Pin
_AnsHUMAN_ 13-Jun-06 4:02
_AnsHUMAN_ 13-Jun-06 4:02 
GeneralRe: FormView Color Pin
mikobi13-Jun-06 4:09
mikobi13-Jun-06 4:09 
AnswerRe: FormView Color Pin
Viorel.13-Jun-06 4:19
Viorel.13-Jun-06 4:19 
GeneralRe: FormView Color Pin
mikobi13-Jun-06 4:34
mikobi13-Jun-06 4:34 
AnswerRe: FormView Color Pin
Hamid_RT13-Jun-06 19:18
Hamid_RT13-Jun-06 19:18 
QuestionMaximum Timers in VC6 Pin
Cyber Friend13-Jun-06 3:30
Cyber Friend13-Jun-06 3:30 
AnswerRe: Maximum Timers in VC6 Pin
David Crow13-Jun-06 3:40
David Crow13-Jun-06 3:40 
AnswerRe: Maximum Timers in VC6 Pin
Laxman Auti13-Jun-06 3:42
Laxman Auti13-Jun-06 3:42 
AnswerRe: Maximum Timers in VC6 Pin
Jun Du13-Jun-06 4:09
Jun Du13-Jun-06 4:09 
GeneralRe: Maximum Timers in VC6 Pin
Cyber Friend13-Jun-06 4:32
Cyber Friend13-Jun-06 4:32 
GeneralRe: Maximum Timers in VC6 Pin
Jun Du13-Jun-06 4:54
Jun Du13-Jun-06 4:54 
GeneralRe: Maximum Timers in VC6 Pin
Cyber Friend13-Jun-06 22:04
Cyber Friend13-Jun-06 22: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.