Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Where to put MFC DLL's Pin
Michael P Butler20-Nov-02 22:13
Michael P Butler20-Nov-02 22:13 
GeneralIID and CLSID from ActiveX controls Pin
Zac Howland20-Nov-02 11:33
Zac Howland20-Nov-02 11:33 
GeneralRe: IID and CLSID from ActiveX controls Pin
dabs20-Nov-02 13:38
dabs20-Nov-02 13:38 
GeneralDifference Between the Heap and The Stack Pin
ursus zeta20-Nov-02 10:55
ursus zeta20-Nov-02 10:55 
GeneralRe: Difference Between the Heap and The Stack Pin
Joaquín M López Muñoz20-Nov-02 11:07
Joaquín M López Muñoz20-Nov-02 11:07 
GeneralRe: Difference Between the Heap and The Stack Pin
Christian Graus20-Nov-02 13:27
protectorChristian Graus20-Nov-02 13:27 
GeneralRe: Difference Between the Heap and The Stack Pin
dabs20-Nov-02 13:43
dabs20-Nov-02 13:43 
GeneralRe: Difference Between the Heap and The Stack Pin
User 988520-Nov-02 11:10
User 988520-Nov-02 11:10 
When you do

int* a = new int;
*a = 5;

the memory for the variable is on the heap

When you do

int a;
a= 5;

the memory for the variable is on the stack

In the first case, you have to call

delete a;

otherwise, it will cause a memory leak.

When I say memory leak, it always refers to a leak on the heap.


My article on a reference-counted smart pointer that supports polymorphic objects and raw pointers


modified 29-Aug-18 21:01pm.

GeneralRe: Difference Between the Heap and The Stack Pin
ursus zeta20-Nov-02 11:28
ursus zeta20-Nov-02 11:28 
Generalread a percent from a file Pin
Amit Dey20-Nov-02 10:52
Amit Dey20-Nov-02 10:52 
GeneralRe: read a percent from a file Pin
James R. Twine20-Nov-02 10:59
James R. Twine20-Nov-02 10:59 
GeneralRe: read a percent from a file Pin
Amit Dey20-Nov-02 11:10
Amit Dey20-Nov-02 11:10 
GeneralRe: read a percent from a file Pin
User 988520-Nov-02 11:23
User 988520-Nov-02 11:23 
GeneralRe: read a percent from a file Pin
Amit Dey20-Nov-02 11:30
Amit Dey20-Nov-02 11:30 
GeneralRe: read a percent from a file Pin
James R. Twine20-Nov-02 13:20
James R. Twine20-Nov-02 13:20 
GeneralRe: read a percent from a file Pin
User 988520-Nov-02 13:31
User 988520-Nov-02 13:31 
GeneralRe: read a percent from a file Pin
James R. Twine20-Nov-02 13:59
James R. Twine20-Nov-02 13:59 
GeneralRe: read a percent from a file Pin
User 988521-Nov-02 5:26
User 988521-Nov-02 5:26 
GeneralRe: read a percent from a file Pin
James R. Twine21-Nov-02 9:17
James R. Twine21-Nov-02 9:17 
GeneralRe: read a percent from a file Pin
Amit Dey21-Nov-02 10:34
Amit Dey21-Nov-02 10:34 
GeneralRe: read a percent from a file Pin
User 988521-Nov-02 10:45
User 988521-Nov-02 10:45 
GeneralRe: read a percent from a file Pin
Amit Dey21-Nov-02 12:03
Amit Dey21-Nov-02 12:03 
GeneralRe: read a percent from a file Pin
Amit Dey21-Nov-02 10:35
Amit Dey21-Nov-02 10:35 
GeneralRe: read a percent from a file Pin
James R. Twine21-Nov-02 17:37
James R. Twine21-Nov-02 17:37 
GeneralRe: read a percent from a file Pin
Amit Dey22-Nov-02 4:24
Amit Dey22-Nov-02 4:24 

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.