Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Speaking of missing the basics - is there a way to dynamically size an array on the stack ? Pin
Stuart Dootson7-Jul-09 2:57
professionalStuart Dootson7-Jul-09 2:57 
AnswerRe: Speaking of missing the basics - is there a way to dynamically size an array on the stack ? Pin
Sarath C7-Jul-09 3:30
Sarath C7-Jul-09 3:30 
JokeThank you, kindly, Harold, Stuart, Sarath - your answers are greatly appreciated! [modified] Pin
Mike the Red7-Jul-09 3:31
Mike the Red7-Jul-09 3:31 
GeneralRe: Thank you, kindly, Harlod, Stuart, Sarath - your answers are greatly appreciated! Pin
«_Superman_»7-Jul-09 3:44
professional«_Superman_»7-Jul-09 3:44 
GeneralRe: Thank you, kindly, Harlod, Stuart, Sarath - your answers are greatly appreciated! Pin
harold aptroot7-Jul-09 15:27
harold aptroot7-Jul-09 15:27 
AnswerRe: Speaking of missing the basics - is there a way to dynamically size an array on the stack ? Pin
Single Step Debugger7-Jul-09 4:20
Single Step Debugger7-Jul-09 4:20 
AnswerRe: Speaking of missing the basics - is there a way to dynamically size an array on the stack ? Pin
molesworth7-Jul-09 4:29
molesworth7-Jul-09 4:29 
QuestionActually, no, I'm not sure I want to allocate large chunks of data on the stack... Here's what I'm doing at the moment... Pin
Mike the Red7-Jul-09 5:28
Mike the Red7-Jul-09 5:28 
I'm writing an ISAPI extension to handle form data including one or more file uploads.

Most of what I've read on ISAPI extensions has indicated that time and memory are of the essence, and, because of that, using the heap should be avoided, as much as is reasonable, in favor of using the stack.

I understand a few parts of the stack/heap concept, but my knowledge (and understanding) is severly lacking in this area. As such, I didn't know whether or not trying to place the entire HTTP-REQUEST (including the uploaded files) on the stack was possible or reasonable until I asked.

That said, when I asked about dynamically sizing an array I was more thinking about "standard-length" strings...

I have been programming for several years, but, until the past couple years, almost exclusively in higher-level languages that didn't require me to keep track of memory. And, when I started with C++, I was using managed C++ with its garbage-collection crutch.

Now that I'm trying (or having) to ditch the __gc, I try to keep things on the stack as much as possible. Tracking down those ommitted deletes is a pain, especially for often-changed member variables where I tend to forget to delete the existing object/value before creating the new one.


Thank you for your patience in guiding the nooB!

MZR
AnswerRe: Actually, no, I'm not sure I want to allocate large chunks of data on the stack... Here's what I'm doing at the moment... Pin
Kevin McFarlane7-Jul-09 6:21
Kevin McFarlane7-Jul-09 6:21 
AnswerRe: Actually, no, I'm not sure I want to allocate large chunks of data on the stack... Here's what I'm doing at the moment... Pin
Rajesh R Subramanian7-Jul-09 7:23
professionalRajesh R Subramanian7-Jul-09 7:23 
AnswerRe: Actually, no, I'm not sure I want to allocate large chunks of data on the stack... Here's what I'm doing at the moment... Pin
Stuart Dootson7-Jul-09 8:36
professionalStuart Dootson7-Jul-09 8:36 
QuestionHow to Insert Data In Excel Pin
Anubhava Dimri7-Jul-09 2:45
Anubhava Dimri7-Jul-09 2:45 
AnswerRe: How to Insert Data In Excel Pin
Michael Schubert7-Jul-09 3:01
Michael Schubert7-Jul-09 3:01 
GeneralRe: How to Insert Data In Excel Pin
Anubhava Dimri7-Jul-09 18:15
Anubhava Dimri7-Jul-09 18:15 
GeneralRe: How to Insert Data In Excel Pin
David Crow8-Jul-09 3:02
David Crow8-Jul-09 3:02 
GeneralRe: How to Insert Data In Excel Pin
Anubhava Dimri8-Jul-09 18:08
Anubhava Dimri8-Jul-09 18:08 
QuestionRe: How to Insert Data In Excel Pin
David Crow9-Jul-09 1:46
David Crow9-Jul-09 1:46 
AnswerRe: How to Insert Data In Excel Pin
Anubhava Dimri9-Jul-09 2:31
Anubhava Dimri9-Jul-09 2:31 
QuestionRe: How to Insert Data In Excel Pin
David Crow9-Jul-09 2:37
David Crow9-Jul-09 2:37 
AnswerRe: How to Insert Data In Excel Pin
Anubhava Dimri9-Jul-09 18:04
Anubhava Dimri9-Jul-09 18:04 
GeneralRe: How to Insert Data In Excel Pin
David Crow10-Jul-09 3:04
David Crow10-Jul-09 3:04 
GeneralRe: How to Insert Data In Excel Pin
Anubhava Dimri10-Jul-09 18:16
Anubhava Dimri10-Jul-09 18:16 
QuestionWindows Workflow Foundation Pin
RS.Ratheesh7-Jul-09 2:41
RS.Ratheesh7-Jul-09 2:41 
AnswerRe: Windows Workflow Foundation Pin
Kevin McFarlane7-Jul-09 6:10
Kevin McFarlane7-Jul-09 6:10 
GeneralRe: Windows Workflow Foundation Pin
RS.Ratheesh7-Jul-09 20:19
RS.Ratheesh7-Jul-09 20:19 

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.