Click here to Skip to main content
16,013,918 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: separating words in a string Pin
Sumit Kapoor19-Jan-04 2:17
Sumit Kapoor19-Jan-04 2:17 
GeneralRe: separating words in a string Pin
22491719-Jan-04 2:18
22491719-Jan-04 2:18 
GeneralRe: separating words in a string Pin
David Crow19-Jan-04 2:32
David Crow19-Jan-04 2:32 
Generalclosing an application Pin
misha_grewal18-Jan-04 18:36
misha_grewal18-Jan-04 18:36 
GeneralRe: closing an application Pin
Michael Dunn18-Jan-04 19:41
sitebuilderMichael Dunn18-Jan-04 19:41 
GeneralafxMapHWND() returns null in CWnd::AssertValid Pin
wilsonian18-Jan-04 17:42
wilsonian18-Jan-04 17:42 
GeneralRe: afxMapHWND() returns null in CWnd::AssertValid Pin
Monty218-Jan-04 18:41
Monty218-Jan-04 18:41 
GeneralMemory Management with variables Pin
IceBerG7118-Jan-04 15:13
IceBerG7118-Jan-04 15:13 
Just a question

void main(void)
{
int i;

for(i=0;i<100;i++)
{
Check(1);
}
}

void Check(int i)
{
char szMsg[100];
}

if the Check function will be called 100 times, will the szMsg be
1) created and disallocated 100 times as well
2) created once and remained till the Main ended
3) created once and not freed at all
4) created 100 times and not freed at all

if the answer is 1 or 2, then what is the difference / advantages if i use malloc or LocalAlloc instead? will there be performance problem?

I am doing a project on embedded device and memeory managment is crucial.

I thanx anyone who gave me expertise answer.
GeneralRe: Memory Management with variables Pin
Stefan Pedersen18-Jan-04 15:26
Stefan Pedersen18-Jan-04 15:26 
GeneralRe: Memory Management with variables Pin
IceBerG7118-Jan-04 15:39
IceBerG7118-Jan-04 15:39 
GeneralRe: Memory Management with variables Pin
Mike Dimmick18-Jan-04 23:27
Mike Dimmick18-Jan-04 23:27 
GeneralRe: Memory Management with variables Pin
Gary R. Wheeler18-Jan-04 15:32
Gary R. Wheeler18-Jan-04 15:32 
GeneralRe: Memory Management with variables Pin
SiddharthAtw18-Jan-04 17:18
SiddharthAtw18-Jan-04 17:18 
GeneralUsing ProgressBar in another class Pin
shultas18-Jan-04 14:13
shultas18-Jan-04 14:13 
GeneralRe: Using ProgressBar in another class Pin
David Crow19-Jan-04 2:43
David Crow19-Jan-04 2:43 
Questionhow do i hendel a function when a key is press'd Pin
Bondtje18-Jan-04 13:25
Bondtje18-Jan-04 13:25 
AnswerRe: how do i hendel a function when a key is press'd Pin
Michael Dunn18-Jan-04 16:28
sitebuilderMichael Dunn18-Jan-04 16:28 
Generalfile x-fer help required Pin
Anonymous18-Jan-04 12:17
Anonymous18-Jan-04 12:17 
QuestionOk, so when is a variable defined? Pin
Senkwe Chanda18-Jan-04 11:58
Senkwe Chanda18-Jan-04 11:58 
AnswerRe: Ok, so when is a variable defined? Pin
Gary R. Wheeler18-Jan-04 12:13
Gary R. Wheeler18-Jan-04 12:13 
GeneralRe: Ok, so when is a variable defined? Pin
Senkwe Chanda18-Jan-04 13:01
Senkwe Chanda18-Jan-04 13:01 
GeneralRe: Ok, so when is a variable defined? Pin
Gary R. Wheeler18-Jan-04 15:16
Gary R. Wheeler18-Jan-04 15:16 
GeneralRe: Ok, so when is a variable defined? Pin
Senkwe Chanda18-Jan-04 17:12
Senkwe Chanda18-Jan-04 17:12 
AnswerRe: Ok, so when is a variable defined? Pin
Mike Dimmick18-Jan-04 23:34
Mike Dimmick18-Jan-04 23:34 
GeneralRe: Ok, so when is a variable defined? Pin
Senkwe Chanda19-Jan-04 4:42
Senkwe Chanda19-Jan-04 4:42 

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.