Click here to Skip to main content
15,919,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: old fashioned memory access in a visual C++ console application? Pin
dim136-Jan-05 2:05
dim136-Jan-05 2:05 
GeneralImPLEMENT_DYNAMIC Pin
ns27-Feb-03 7:54
ns27-Feb-03 7:54 
GeneralRe: ImPLEMENT_DYNAMIC Pin
Dave Bryant27-Feb-03 8:24
Dave Bryant27-Feb-03 8:24 
Generalthanks! Pin
ns27-Feb-03 8:32
ns27-Feb-03 8:32 
GeneralEfficient use of memory and filtering Pin
Anton A. Loukine27-Feb-03 6:41
Anton A. Loukine27-Feb-03 6:41 
GeneralRe: Efficient use of memory and filtering Pin
John M. Drescher27-Feb-03 6:50
John M. Drescher27-Feb-03 6:50 
GeneralRe: Efficient use of memory and filtering Pin
Anton A. Loukine27-Feb-03 7:20
Anton A. Loukine27-Feb-03 7:20 
GeneralRe: Efficient use of memory and filtering Pin
Daniel Turini27-Feb-03 7:34
Daniel Turini27-Feb-03 7:34 
Anton A. Loukine wrote:
Is there a way to set specific pointer in memory to NULL or something like this to achieve what i need? How does the OS know that this block of memory is used?

What you want is known as garbage collection. There are several approaches to it, but the easier one is: starting with VC.NET, you have managed C++ and can declare a class as __gc so any instance will be garbage collected when there are no references to it anymore.
As I've said before, there are other approaches like, e.g., ref. counting.


I see dumb people
GeneralRe: Efficient use of memory and filtering Pin
John M. Drescher27-Feb-03 7:48
John M. Drescher27-Feb-03 7:48 
QuestionAutomatic generation of MS Visual C++ projects ? Pin
CHARMAN27-Feb-03 6:19
CHARMAN27-Feb-03 6:19 
AnswerRe: Automatic generation of MS Visual C++ projects ? Pin
AlexO27-Feb-03 8:21
AlexO27-Feb-03 8:21 
GeneralSHGetFileInfo: I can't get SHGFI_ICONLOCATION to work Pin
Mike Morearty27-Feb-03 6:15
Mike Morearty27-Feb-03 6:15 
GeneralRe: SHGetFileInfo: I can't get SHGFI_ICONLOCATION to work Pin
AlexO27-Feb-03 8:38
AlexO27-Feb-03 8:38 
GeneralRe: SHGetFileInfo: I can't get SHGFI_ICONLOCATION to work Pin
Mike Morearty27-Feb-03 8:49
Mike Morearty27-Feb-03 8:49 
GeneralCSliderCtrl notifications Pin
Maximilien27-Feb-03 5:25
Maximilien27-Feb-03 5:25 
GeneralRe: CSliderCtrl notifications Pin
AlexO27-Feb-03 5:59
AlexO27-Feb-03 5:59 
Generalmultiple windowed apps Pin
SumGuy27-Feb-03 5:19
SumGuy27-Feb-03 5:19 
GeneralRe: multiple windowed apps Pin
Rage27-Feb-03 5:55
professionalRage27-Feb-03 5:55 
GeneralRe: multiple windowed apps Pin
SumGuy27-Feb-03 6:26
SumGuy27-Feb-03 6:26 
GeneralI figured it out thanks Pin
SumGuy27-Feb-03 7:19
SumGuy27-Feb-03 7:19 
GeneralRe: I figured it out thanks Pin
Alvaro Mendez27-Feb-03 9:54
Alvaro Mendez27-Feb-03 9:54 
GeneralRe: I figured it out thanks Pin
Jason Henderson27-Feb-03 11:22
Jason Henderson27-Feb-03 11:22 
GeneralRe: I figured it out thanks Pin
Alvaro Mendez27-Feb-03 17:23
Alvaro Mendez27-Feb-03 17:23 
GeneralA self-disappearing messagebox Pin
ns27-Feb-03 5:03
ns27-Feb-03 5:03 
GeneralRe: A self-disappearing messagebox Pin
will138327-Feb-03 5:08
will138327-Feb-03 5: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.