Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCAsyncMonikerFile Pin
PetoG14-Dec-04 3:08
PetoG14-Dec-04 3:08 
Generalprogrammatically prevent dialog from resize and move Pin
erkanina14-Dec-04 2:36
erkanina14-Dec-04 2:36 
GeneralRe: programmatically prevent dialog from resize and move Pin
Blake Miller14-Dec-04 4:09
Blake Miller14-Dec-04 4:09 
GeneralRe: programmatically prevent dialog from resize and move Pin
erkanina14-Dec-04 21:28
erkanina14-Dec-04 21:28 
Generalproblem with writing to file Pin
gamitech14-Dec-04 2:26
gamitech14-Dec-04 2:26 
GeneralRe: problem with writing to file Pin
Iain Clarke, Warrior Programmer14-Dec-04 6:01
Iain Clarke, Warrior Programmer14-Dec-04 6:01 
GeneralRe: problem with writing to file Pin
gamitech15-Dec-04 1:08
gamitech15-Dec-04 1:08 
Questionserial comm timeout problem? Pin
doneirik14-Dec-04 2:19
doneirik14-Dec-04 2:19 
AnswerRe: serial comm timeout problem? Pin
Roger Stoltz14-Dec-04 4:30
Roger Stoltz14-Dec-04 4:30 
QuestionDelete object, necessaray?? Pin
tpndtbk14-Dec-04 2:15
tpndtbk14-Dec-04 2:15 
AnswerRe: Delete object, necessaray?? Pin
Maximilien14-Dec-04 2:27
Maximilien14-Dec-04 2:27 
AnswerRe: Delete object, necessaray?? Pin
V.14-Dec-04 3:00
professionalV.14-Dec-04 3:00 
GeneralRe: Delete object, necessaray?? Pin
toxcct14-Dec-04 4:29
toxcct14-Dec-04 4:29 
GeneralRe: Delete object, necessaray?? Pin
V.14-Dec-04 4:38
professionalV.14-Dec-04 4:38 
GeneralRe: Delete object, necessaray?? Pin
toxcct14-Dec-04 4:53
toxcct14-Dec-04 4:53 
GeneralRe: Delete object, necessaray?? Pin
David Crow14-Dec-04 5:24
David Crow14-Dec-04 5:24 
AnswerRe: Delete object, necessaray?? Pin
tpndtbk14-Dec-04 3:30
tpndtbk14-Dec-04 3:30 
GeneralRe: Delete object, necessaray?? Pin
tpndtbk14-Dec-04 3:34
tpndtbk14-Dec-04 3:34 
GeneralRe: Delete object, necessaray?? Pin
Jon Hulatt14-Dec-04 4:19
Jon Hulatt14-Dec-04 4:19 
It seems like you need to do some reading on memory allocation in C / C++

When you declare an object like this:-

ObjectA theObject;

It is created for you, and it will be removed automatically when it goes out of scope.

When you declare an object like this:-

ObjectA *thePointerToObject = new ObjectA();

You are doing three things:- creating a pointer (which will be removed for you), creating a new instance of ObjectA (which it is your duty to clean up), and setting your new pointer to point to the new object.

This really is basic C++. *Any* C++ tutorial book/site will explain this; go out there are read up!

using System.Beer;

GeneralRe: Delete object, necessaray?? Pin
David Crow14-Dec-04 5:36
David Crow14-Dec-04 5:36 
AnswerRe: Delete object, necessaray?? Pin
toxcct14-Dec-04 4:36
toxcct14-Dec-04 4:36 
Generala ftp server where download XP for free Pin
Anonymous14-Dec-04 1:21
Anonymous14-Dec-04 1:21 
GeneralRe: a ftp server where download XP for free Pin
Antony M Kancidrowski14-Dec-04 1:42
Antony M Kancidrowski14-Dec-04 1:42 
GeneralRe: a ftp server where download XP for free Pin
Jon Hulatt14-Dec-04 4:20
Jon Hulatt14-Dec-04 4:20 
GeneralRe: a ftp server where download XP for free Pin
toxcct14-Dec-04 4:27
toxcct14-Dec-04 4:27 

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.