Solved

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

Posted on 1997-11-26
2
562 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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. …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 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