Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to remove a property sheet space? Pin
Mushtaque Nizamani10-Aug-07 1:45
Mushtaque Nizamani10-Aug-07 1:45 
AnswerRe: How to remove a property sheet space? Pin
KarstenK10-Aug-07 2:30
mveKarstenK10-Aug-07 2:30 
QuestionRe: How to remove a property sheet space? Pin
David Crow10-Aug-07 3:09
David Crow10-Aug-07 3:09 
AnswerRe: How to remove a property sheet space? Pin
Mushtaque Nizamani10-Aug-07 3:35
Mushtaque Nizamani10-Aug-07 3:35 
QuestionRe: How to remove a property sheet space? Pin
David Crow10-Aug-07 3:40
David Crow10-Aug-07 3:40 
AnswerRe: How to remove a property sheet space? Pin
Mushtaque Nizamani10-Aug-07 4:02
Mushtaque Nizamani10-Aug-07 4:02 
GeneralRe: How to remove a property sheet space? Pin
Jim Crafton10-Aug-07 4:26
Jim Crafton10-Aug-07 4:26 
Questiondelete memory Pin
Monark10-Aug-07 1:36
Monark10-Aug-07 1:36 
Hi All,

I am new to c++ and facing one prob. I have one base class Vehicle and two sub class Car and Motor. I have an array of pointer to sub class but i m not able to delete the memory for that.

CVehicle
CCar : CVehicle
CMotor : CVehicle


CVehicle** myVehicle;
myVehicle = new CVehicle*[3];

myVehicle[0] = new CCar;
myVehicle[1] = new CMotor;
myVehicle[2] = new CCar;


now when I tried to reallocate the memroy, it is giving an error.

delete myVehicle ;

Any idea how to delete the memory??

Any help


Monark - I am learning
AnswerRe: delete memory Pin
sw@thi10-Aug-07 1:43
sw@thi10-Aug-07 1:43 
AnswerRe: delete memory Pin
toxcct10-Aug-07 1:49
toxcct10-Aug-07 1:49 
AnswerRe: delete memory Pin
Nishad S10-Aug-07 2:17
Nishad S10-Aug-07 2:17 
AnswerRe: delete memory Pin
KarstenK10-Aug-07 2:17
mveKarstenK10-Aug-07 2:17 
GeneralRe: delete memory Pin
David Crow10-Aug-07 3:19
David Crow10-Aug-07 3:19 
GeneralRe: delete memory Pin
KarstenK10-Aug-07 3:27
mveKarstenK10-Aug-07 3:27 
GeneralRe: delete memory Pin
David Crow10-Aug-07 3:29
David Crow10-Aug-07 3:29 
GeneralRe: delete memory Pin
KarstenK10-Aug-07 3:40
mveKarstenK10-Aug-07 3:40 
GeneralRe: delete memory Pin
David Crow10-Aug-07 3:50
David Crow10-Aug-07 3:50 
QuestionQuery regarding terminating a thread. Pin
Rajesh_Parameswaran10-Aug-07 1:23
Rajesh_Parameswaran10-Aug-07 1:23 
AnswerRe: Query regarding terminating a thread. Pin
jhwurmbach10-Aug-07 1:42
jhwurmbach10-Aug-07 1:42 
AnswerRe: Query regarding terminating a thread. Pin
KarstenK10-Aug-07 3:15
mveKarstenK10-Aug-07 3:15 
GeneralRe: Query regarding terminating a thread. Pin
Rajesh_Parameswaran10-Aug-07 5:56
Rajesh_Parameswaran10-Aug-07 5:56 
GeneralRe: Query regarding terminating a thread. Pin
KarstenK12-Aug-07 21:21
mveKarstenK12-Aug-07 21:21 
Questionhow to output text file in C++/MFC Pin
tunminshein10-Aug-07 0:56
tunminshein10-Aug-07 0:56 
AnswerRe: how to output text file in C++/MFC Pin
baerten10-Aug-07 1:08
baerten10-Aug-07 1:08 
AnswerRe: how to output text file in C++/MFC Pin
Hamid_RT10-Aug-07 1:11
Hamid_RT10-Aug-07 1:11 

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.