Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUpdating Sw components on the fly through network Pin
auroch24-May-02 7:28
auroch24-May-02 7:28 
GeneralRe: Updating Sw components on the fly through network Pin
Ravi Bhavnani24-May-02 8:21
professionalRavi Bhavnani24-May-02 8:21 
GeneralRe: Updating Sw components on the fly through network Pin
auroch25-May-02 12:03
auroch25-May-02 12:03 
GeneralRe: Updating Sw components on the fly through network Pin
Ravi Bhavnani25-May-02 13:12
professionalRavi Bhavnani25-May-02 13:12 
GeneralCArray question Pin
Jason Hihn24-May-02 6:44
Jason Hihn24-May-02 6:44 
GeneralRe: CArray question Pin
Joaquín M López Muñoz24-May-02 6:59
Joaquín M López Muñoz24-May-02 6:59 
GeneralRe: CArray question Pin
Joel Matthias24-May-02 7:32
Joel Matthias24-May-02 7:32 
GeneralRe: CArray question Pin
Joel Matthias24-May-02 7:36
Joel Matthias24-May-02 7:36 
Jason Hihn wrote:
while (Array.GetSize()){
delete Array[0];
Array.RemoveAt(0);
}


Let's try again.

That's a pretty inefficient way of doing it since every time you remove at 0 the upper data has to be shifted down. I would just keep it simple e.g.

for(int i=0; i < Array.GetSize(); i++)
{
delete Array[i];
}
Array.RemoveAll();

Joel
GeneralRe: CArray question Pin
Dean Michaud24-May-02 8:00
Dean Michaud24-May-02 8:00 
GeneralRe: CArray question Pin
Joel Matthias24-May-02 8:07
Joel Matthias24-May-02 8:07 
GeneralRe: CArray question Pin
Ravi Bhavnani24-May-02 8:19
professionalRavi Bhavnani24-May-02 8:19 
GeneralDialog application without taskbar Pin
Hans Ruck24-May-02 6:21
Hans Ruck24-May-02 6:21 
GeneralRe: Dialog application without taskbar Pin
Paul M Watt24-May-02 7:28
mentorPaul M Watt24-May-02 7:28 
GeneralVariable declaration issues Pin
Stew24-May-02 6:11
Stew24-May-02 6:11 
GeneralRe: Variable declaration issues Pin
Chris Losinger24-May-02 6:46
professionalChris Losinger24-May-02 6:46 
GeneralRe: Variable declaration issues Pin
Mike Nordell24-May-02 8:26
Mike Nordell24-May-02 8:26 
GeneralRe: Variable declaration issues Pin
Matt Gullett24-May-02 9:46
Matt Gullett24-May-02 9:46 
Generaljpg and visual c++ 6. Pin
24-May-02 6:08
suss24-May-02 6:08 
GeneralRe: jpg and visual c++ 6. Pin
Chris Losinger24-May-02 6:45
professionalChris Losinger24-May-02 6:45 
GeneralTooltips and group boxes Pin
Riccardo Modesti24-May-02 5:12
Riccardo Modesti24-May-02 5:12 
GeneralRe: Tooltips and group boxes Pin
Paul M Watt24-May-02 7:30
mentorPaul M Watt24-May-02 7:30 
GeneralRe: Tooltips and group boxes Pin
Riccardo Modesti26-May-02 21:17
Riccardo Modesti26-May-02 21:17 
GeneralRe: Tooltips and group boxes Pin
JChampion5-May-04 13:05
JChampion5-May-04 13:05 
GeneralDB interfacing Pin
Brian Delahunty24-May-02 4:58
Brian Delahunty24-May-02 4:58 
GeneralRe: DB interfacing Pin
Chris Losinger24-May-02 5:06
professionalChris Losinger24-May-02 5:06 

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.