Click here to Skip to main content
15,885,278 members
Articles / Desktop Programming / MFC

Automatic Garbage Collection in C++ using Smart pointers

Rate me:
Please Sign up or sign in to vote.
4.33/5 (28 votes)
18 May 20035 min read 107.3K   1.3K   30  
This article explains how to prevent your programs from memory leaks, by incorporating Garbage Collector in your class.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by VDV.RC
//
#define IDR_MENU1                       101
#define IDD_DIALOG1                     102
#define ID_ABOUT                        40001


// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        103
#define _APS_NEXT_COMMAND_VALUE         40002
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Pakistan Pakistan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions