?
Solved

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

Posted on 1997-11-26
2
Medium Priority
?
569 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

762 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