Borland C++/OWL to VISUAL C++/MFC

I am converting a Borland C++ (with OWL) application into
Visual C++ with MFC. One of the classes in the Borland appl is derived from 'sortable'. The Borland on-line help says that 'sortable' are "used to create class of objects that are sortable". I've no idea what this means. Anyway, the question is what is the equivalent in VC++?

I have used OWL for 3 years, but I never found this kind of "sortable" class. Maybe are you referring to a derived class from TSortedArray or similar? In this case there is no equivalence in MFC. I have

I have used OWL for 3 years, but I never found this kind of "sortable" class. Maybe are you referring to a derived class from TSortedArray or similar? In this case there is no equivalence in MFC. I have written my own sortable classes using MFC templates and by adding a sort routine.

Sortable is a reserved word recognised by Borland C++. Here is what the on-line Help has to say about Sortable.....
=================================================================

Use Sortable to create classes of objects that are sortable. Membership in this class is limited to objects that can be tested for order.

You can derive objects from Sortable and place them into ordered collections. An object derived from Sortable must define isLessThan, and isEqual in addition to those functions required by the class Object.

The type of sortable objects available differs between the Object-based containers and the template-based containers.

In the Object-based hierarchy you must use objects ultimately derived from Sortable, whereas the template containers let you store any object or predefined data type for which == and < is defined.

If you want to store ints in an Object-based container, you must invent a suitable class.
=================================================================

Would you mind giving me the source code for your sortable classes?

0

Featured Post

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms. Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go. MFC has a very cool system for handli…

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes. I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.
Introductio…

Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…