#620 ADD Tree results changed

Classes (182)

The handle returned by the ADD method for the TREE class has always returned a numeric value which I have used as an index in an array. The returned results are no longer a numeric value:

Incorrect call to method. Method argument 2 must be a positive whole number; found "0x000E48B8"


  • Mark Miesfeld

    Mark Miesfeld - 2009-04-17

    No, the add() method of the Tree class is documented to return a handle and has always returned a handle.

    A handle is not a numeric value.

    The ooDialog doc has always explicitly stated that a handle is a unique reference to a Windows object assigned by the system. It has stated this all the way back to the IBM ooDialog doc.

    In ooDialog handles should only be used where they are required as arguments for certain methods. The ooDialog doc has never stated they should be used in any other manner. And, indeed they should not be used in any other manner. <grin>

    In Windows itself, handles are an opaque data type, whose actual representation has changed over time and whose representation has, and still does change, on different architectures. In ooDialog the actual representation of a handle is not guarenteed and the representation may change over time.

    In the ooDialog doc, the definition for a 'handle' is located in the 'Definition of Terms' section. In the 4.0.0 docs this is Chapter 2 section 2 (2.2.) In the 3.2.0 doc it is in Chapter 3. In the IBM doc it is in its own chapter, but the chapters are not numbered, it's about the 10th section.

  • Mark Miesfeld

    Mark Miesfeld - 2010-02-22

    Since the resolution is "Won't Fix" this should have been closed.



Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks