Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 1997-11-26
2
Medium Priority
?
571 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

618 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