Click here to Skip to main content
15,906,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: I want to work on Progress bar.Can I have ur suggestion pls? Pin
kokilag8-Jul-09 6:33
kokilag8-Jul-09 6:33 
QuestionRe: I want to work on Progress bar.Can I have ur suggestion pls? Pin
David Crow8-Jul-09 6:42
David Crow8-Jul-09 6:42 
AnswerRe: I want to work on Progress bar.Can I have ur suggestion pls? Pin
kokilag10-Jul-09 1:01
kokilag10-Jul-09 1:01 
GeneralRe: I want to work on Progress bar.Can I have ur suggestion pls? Pin
David Crow10-Jul-09 3:02
David Crow10-Jul-09 3:02 
GeneralRe: I want to work on Progress bar.Can I have ur suggestion pls? Pin
kokilag15-Jul-09 0:57
kokilag15-Jul-09 0:57 
GeneralRe: I want to work on Progress bar.Can I have ur suggestion pls? Pin
David Crow15-Jul-09 2:52
David Crow15-Jul-09 2:52 
QuestionRedirect video stream from window handler to a buffer Pin
GolddenEgg7-Jul-09 7:19
GolddenEgg7-Jul-09 7:19 
QuestionSpeaking of missing the basics - is there a way to dynamically size an array on the stack ? Pin
Mike the Red7-Jul-09 2:47
Mike the Red7-Jul-09 2:47 
I know that it works on the heap...
char * sz1 = "Text";
char * sz = new char[strlen(sz1)];
...and I know that this will give me an error saying that a constant is expected:
char * sz1 = "Text";
char sz[strlen(sz1)];


...So is there some other way to create an array on the stack whose size is not hard-coded ? I've seen things like:
char char * szBuff[iSomeLargeNumber];
char * sz1 = "Text";
strcpy(szBuff, sz1);
But no matter how large iSomeLargeNumber is, there's still a hard-coded limit... and declaring a large array on the stack uses the full amount of memory even if the full array isn't populated...(right?)

Is the heap the only answer?

As always, thanks for putting up with the nooB..

MZR
AnswerRe: Speaking of missing the basics - is there a way to dynamically size an array on the stack ? Pin
harold aptroot7-Jul-09 2:54
harold aptroot7-Jul-09 2:54 
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 
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 

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.