Click here to Skip to main content
15,890,043 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Protocol and web-site Pin
ThatsAlok8-Nov-05 20:14
ThatsAlok8-Nov-05 20:14 
AnswerRe: Protocol and web-site Pin
S Douglas8-Nov-05 21:41
professionalS Douglas8-Nov-05 21:41 
QuestionHttp connection Pin
includeh108-Nov-05 19:19
includeh108-Nov-05 19:19 
AnswerRe: Http connection Pin
ThatsAlok8-Nov-05 19:55
ThatsAlok8-Nov-05 19:55 
QuestionHiding Toolbars, Menubar, control bar and status bar Pin
romuzu8-Nov-05 17:13
romuzu8-Nov-05 17:13 
AnswerRe: Hiding Toolbars, Menubar, control bar and status bar Pin
douglasjordan8-Nov-05 17:26
douglasjordan8-Nov-05 17:26 
QuestionShift-jis Pin
samkook8-Nov-05 12:04
samkook8-Nov-05 12:04 
Question(Console C++)Resizing mallocation? Pin
Mariano Lopez-Gappa8-Nov-05 10:44
Mariano Lopez-Gappa8-Nov-05 10:44 
Hi. This is not a Visual C++ question. Also, it'd be great if it worked under ANSI C.

In this function I'm writing, strings start to come up and need to be saved on a big char* one next to the other, say:

"yellow", "one", "banana" -> "yellowonebanana"

thing is that final length is unknown, it could be 1000b as well as it could be 0b. so I looked it up from Google and only solution found was to do the algorythm twice, where in the first one I calculate length, then malloc, then do again and start storing.

Is there any way to allocate and resize allocation dynamically?

Thx in advance. Mariano Lopez-Gappa.
AnswerRe: (Console C++)Resizing mallocation? Pin
Ravi Bhavnani8-Nov-05 11:06
professionalRavi Bhavnani8-Nov-05 11:06 
AnswerRe: (Console C++)Resizing mallocation? Pin
Tim Smith8-Nov-05 11:25
Tim Smith8-Nov-05 11:25 
AnswerRe: (Console C++)Resizing mallocation? Pin
douglasjordan8-Nov-05 12:57
douglasjordan8-Nov-05 12:57 
AnswerRe: (Console C++)Resizing mallocation? Pin
Mariano Lopez-Gappa8-Nov-05 13:17
Mariano Lopez-Gappa8-Nov-05 13:17 
AnswerRe: (Console C++)Resizing mallocation? Pin
LighthouseJ8-Nov-05 19:30
LighthouseJ8-Nov-05 19:30 
AnswerRe: (Console C++)Resizing mallocation? Pin
David Crow9-Nov-05 2:28
David Crow9-Nov-05 2:28 
GeneralRe: (Console C++)Resizing mallocation? Pin
Tim Smith9-Nov-05 3:14
Tim Smith9-Nov-05 3:14 
QuestionCrash in try catch block Pin
itkid8-Nov-05 10:24
itkid8-Nov-05 10:24 
AnswerRe: Crash in try catch block Pin
Chris Losinger8-Nov-05 10:41
professionalChris Losinger8-Nov-05 10:41 
GeneralRe: Crash in try catch block Pin
itkid8-Nov-05 10:48
itkid8-Nov-05 10:48 
GeneralRe: Crash in try catch block Pin
Chris Losinger8-Nov-05 10:52
professionalChris Losinger8-Nov-05 10:52 
AnswerRe: Crash in try catch block Pin
David Crow8-Nov-05 11:04
David Crow8-Nov-05 11:04 
GeneralRe: Crash in try catch block Pin
itkid8-Nov-05 11:27
itkid8-Nov-05 11:27 
QuestionRe: Crash in try catch block Pin
David Crow9-Nov-05 2:22
David Crow9-Nov-05 2:22 
AnswerRe: Crash in try catch block Pin
itkid9-Nov-05 4:39
itkid9-Nov-05 4:39 
GeneralRe: Crash in try catch block Pin
David Crow9-Nov-05 6:01
David Crow9-Nov-05 6:01 
AnswerRe: Crash in try catch block Pin
James R. Twine9-Nov-05 7:11
James R. Twine9-Nov-05 7:11 

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.