Click here to Skip to main content
15,917,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create Question Pin
Oscar Vazquez17-Sep-01 8:22
Oscar Vazquez17-Sep-01 8:22 
GeneralButtons with symbol character labels Pin
ChrisP17-Sep-01 5:23
ChrisP17-Sep-01 5:23 
GeneralRe: Buttons with symbol character labels Pin
Joaquín M López Muñoz17-Sep-01 6:39
Joaquín M López Muñoz17-Sep-01 6:39 
GeneralStatic object in mfc, only one instance for all instance of my class Pin
Remi Morin17-Sep-01 4:44
Remi Morin17-Sep-01 4:44 
GeneralRe: Static object in mfc, only one instance for all instance of my class Pin
Chris Losinger17-Sep-01 4:51
professionalChris Losinger17-Sep-01 4:51 
GeneralRe: Static object in mfc, only one instance for all instance of my class Pin
Remi Morin17-Sep-01 4:58
Remi Morin17-Sep-01 4:58 
GeneralTell me the difference :) Pin
17-Sep-01 4:40
suss17-Sep-01 4:40 
GeneralRe: Tell me the difference :) Pin
Remi Morin17-Sep-01 5:09
Remi Morin17-Sep-01 5:09 
in a function

MyFunction()
{
char something[64];
[code]
}
the memory is static with the function itself, it's mean that window allocate some memory for the function and that include this 64 char
it's why we don't have to bother to delete this memory, it' will be flushed whit the function itself.

function2()
{
[code]
char something = new char[64];
...
delete something
[/code]
}
this way you call a function who call window, windows allocate memory and return a pointer to this memory. in each case the memory is allocated by windows but in one case it is allocate whit (and for) the function and in the other case it is allocated dynamicaly. In fact the when you start you'r program the something[64] is allocated. And when you close you'r program it is desallocated so it is faster because it is allocated one time, and in the other case it is allocated each time you call this function.


Remi Morin
Rmorin@Operamail.com
Remi.Morin@Lyrtech.com
Le rêve est la seule chose vraiement réelle et vraiement consistante
GeneralRe: Tell me the difference :) Pin
Remi Morin17-Sep-01 5:29
Remi Morin17-Sep-01 5:29 
GeneralRe: Tell me the difference :) Pin
Remi Morin17-Sep-01 6:02
Remi Morin17-Sep-01 6:02 
GeneralCorrection: Tell me the difference :) Pin
17-Sep-01 22:28
suss17-Sep-01 22:28 
GeneralRe: Tell me the difference :) Pin
Alvaro Mendez18-Sep-01 10:42
Alvaro Mendez18-Sep-01 10:42 
GeneralAbsolute bloody ADO hell Pin
Christian Graus17-Sep-01 3:55
protectorChristian Graus17-Sep-01 3:55 
GeneralRe: Absolute bloody ADO hell Pin
Michael P Butler17-Sep-01 4:01
Michael P Butler17-Sep-01 4:01 
GeneralRe: Absolute bloody ADO hell Pin
Christian Graus17-Sep-01 4:06
protectorChristian Graus17-Sep-01 4:06 
GeneralRe: Absolute bloody ADO hell Pin
Michael P Butler17-Sep-01 4:27
Michael P Butler17-Sep-01 4:27 
GeneralRe: Absolute bloody ADO hell Pin
Christian Graus17-Sep-01 4:27
protectorChristian Graus17-Sep-01 4:27 
GeneralRe: Absolute bloody ADO hell Pin
Michael P Butler17-Sep-01 4:35
Michael P Butler17-Sep-01 4:35 
GeneralRe: Absolute bloody ADO hell Pin
Jeremy Pullicino17-Sep-01 5:29
Jeremy Pullicino17-Sep-01 5:29 
GeneralRe: Absolute bloody ADO hell Pin
Christian Graus17-Sep-01 13:00
protectorChristian Graus17-Sep-01 13:00 
GeneralAbsolute bloody ATL hell Pin
Christian Graus17-Sep-01 2:12
protectorChristian Graus17-Sep-01 2:12 
GeneralRe: Absolute bloody ATL hell Pin
Michael P Butler17-Sep-01 2:35
Michael P Butler17-Sep-01 2:35 
GeneralRe: Absolute bloody ATL hell Pin
Christian Graus17-Sep-01 2:51
protectorChristian Graus17-Sep-01 2:51 
GeneralRe: Absolute bloody ATL hell Pin
Michael P Butler17-Sep-01 3:02
Michael P Butler17-Sep-01 3:02 
GeneralRe: Absolute bloody ATL hell Pin
Christian Graus17-Sep-01 3:10
protectorChristian Graus17-Sep-01 3:10 

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.