Click here to Skip to main content
15,902,908 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionADO n DataGrid Pin
SnaKeBeD12-Nov-07 17:33
SnaKeBeD12-Nov-07 17:33 
AnswerRe: ADO n DataGrid Pin
followait12-Nov-07 17:44
followait12-Nov-07 17:44 
GeneralRe: ADO n DataGrid Pin
SnaKeBeD12-Nov-07 18:13
SnaKeBeD12-Nov-07 18:13 
GeneralRe: ADO n DataGrid Pin
SnaKeBeD13-Nov-07 3:48
SnaKeBeD13-Nov-07 3:48 
QuestionHow to Create virtual drive? Pin
bhaskar jatav12-Nov-07 17:25
bhaskar jatav12-Nov-07 17:25 
QuestionHow to make server and client in one program? Pin
maglev_tgv12-Nov-07 15:30
maglev_tgv12-Nov-07 15:30 
AnswerRe: How to make server and client in one program? Pin
only coder12-Nov-07 16:23
only coder12-Nov-07 16:23 
GeneralRe: How to make server and client in one program? Pin
maglev_tgv12-Nov-07 17:55
maglev_tgv12-Nov-07 17:55 
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 

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.