Click here to Skip to main content
16,016,022 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Dean `Karnatos` Michaud wrote:
I prefer to write this as follows, personally:

  while (Array.GetSize())
  {
    delete Array[0];
  }
  Array.RemoveAll();


Imho, that's bad, for 2 reasons: (1) it's inefficient to repeatedly make a function call to GetSize() and (2) it's dangerous to treat integers as boolean expressions. Better to write while (Arrary.GetSize() > 0).

/ravi

"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
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 
GeneralRe: DB interfacing Pin
Brian Delahunty24-May-02 6:04
Brian Delahunty24-May-02 6:04 
GeneralRe: DB interfacing Pin
Mazdak24-May-02 5:08
Mazdak24-May-02 5:08 
GeneralRe: DB interfacing Pin
Brian Delahunty24-May-02 6:02
Brian Delahunty24-May-02 6:02 

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.