Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to draw Moving Average in stock software efficiently? Pin
followait12-Nov-07 14:25
followait12-Nov-07 14:25 
QuestionSerial Port Communications Pin
sunny.rana12-Nov-07 11:37
sunny.rana12-Nov-07 11:37 
QuestionRe: Serial Port Communications Pin
David Crow12-Nov-07 16:56
David Crow12-Nov-07 16:56 
AnswerRe: Serial Port Communications Pin
QuickDeveloper12-Nov-07 19:51
QuickDeveloper12-Nov-07 19:51 
QuestionSimple memory deallocation question (C++) [modified] Pin
Bevan C Bird12-Nov-07 10:35
Bevan C Bird12-Nov-07 10:35 
AnswerRe: Simple memory deallocation question (C++) Pin
led mike12-Nov-07 10:48
led mike12-Nov-07 10:48 
GeneralRe: Simple memory deallocation question (C++) Pin
Bevan C Bird12-Nov-07 11:01
Bevan C Bird12-Nov-07 11:01 
GeneralRe: Simple memory deallocation question (C++) Pin
led mike12-Nov-07 11:25
led mike12-Nov-07 11:25 
Bevan C Bird wrote:
If I clear() or erase() elements from the vector, will it also be the same as delete []'ing the contents of the vector (the arrays)?


somehow I missed that question from your first post... oops.

No it does not free the memory allocated when you used the new operator

Bevan C Bird wrote:
I may need to reuse the memory in this Table or possibly another one.


I don't know what you mean by "reuse the memory". As long as you have the pointers in the vector you will have access to them. If you clear the vector, based on the code you posted, you will no longer have access to the memory.



AnswerRe: Simple memory deallocation question (C++) Pin
Stephen Hewitt12-Nov-07 12:28
Stephen Hewitt12-Nov-07 12:28 
QuestionEdit box Pin
viliam12-Nov-07 8:30
viliam12-Nov-07 8:30 
GeneralRe: Edit box Pin
viliam13-Nov-07 8:27
viliam13-Nov-07 8:27 
GeneralRe: Edit box Pin
viliam13-Nov-07 11:12
viliam13-Nov-07 11:12 
AnswerRe: Edit box Pin
ThatsAlok13-Nov-07 5:02
ThatsAlok13-Nov-07 5:02 
QuestionDisplaying a bitmap Pin
rover_boy12-Nov-07 5:55
rover_boy12-Nov-07 5:55 
AnswerRe: Displaying a bitmap Pin
Hamid_RT12-Nov-07 6:31
Hamid_RT12-Nov-07 6:31 
GeneralRe: Displaying a bitmap Pin
toxcct12-Nov-07 6:37
toxcct12-Nov-07 6:37 
GeneralRe: Displaying a bitmap Pin
Hamid_RT12-Nov-07 6:58
Hamid_RT12-Nov-07 6:58 
QuestionPort VC++ 6.0 project to Visual Studio 2005 Pin
kmrbooks12-Nov-07 3:40
kmrbooks12-Nov-07 3:40 
AnswerRe: Port VC++ 6.0 project to Visual Studio 2005 Pin
led mike12-Nov-07 4:42
led mike12-Nov-07 4:42 
JokeRe: Port VC++ 6.0 project to Visual Studio 2005 Pin
toxcct12-Nov-07 5:03
toxcct12-Nov-07 5:03 
GeneralRe: Port VC++ 6.0 project to Visual Studio 2005 Pin
Hamid_RT12-Nov-07 7:42
Hamid_RT12-Nov-07 7:42 
JokeRe: Port VC++ 6.0 project to Visual Studio 2005 Pin
Rajesh R Subramanian12-Nov-07 20:53
professionalRajesh R Subramanian12-Nov-07 20:53 
AnswerRe: Port VC++ 6.0 project to Visual Studio 2005 Pin
kmrbooks13-Nov-07 4:13
kmrbooks13-Nov-07 4:13 
GeneralRe: Port VC++ 6.0 project to Visual Studio 2005 Pin
led mike13-Nov-07 6:07
led mike13-Nov-07 6:07 
GeneralRe: Port VC++ 6.0 project to Visual Studio 2005 Pin
kmrbooks13-Nov-07 9:27
kmrbooks13-Nov-07 9: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.