Solved

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

Posted on 1997-11-26
2
557 Views
Last Modified: 2013-11-20
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++?
0
Comment
Question by:Siva_Narayan
2 Comments
 
LVL 1

Accepted Solution

by:
winmeister earned 0 total points
ID: 1310919
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.
0
 

Author Comment

by:Siva_Narayan
ID: 1310920
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

How your wiki can always stay up-to-date

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

Join & Write a Comment

Suggested Solutions

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…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
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…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now