Solved

Borland C++ using OWL to MFC Migration

Posted on 1997-12-10
4
627 Views
Last Modified: 2013-12-26
I have an application built entirely on Boralnd C++; uses
OWL extensively; also uses OCF.
1. How easy or difficult to migrate this code completely to MFC.
2. Are there any tools available?
3. Are there any other resources(Books, white-papers, etc) available.
0
Comment
Question by:seedy
  • 2
  • 2
4 Comments
 
LVL 2

Author Comment

by:seedy
ID: 1299495
Adjusted points to 200
0
 
LVL 1

Expert Comment

by:winmeister
ID: 1299496
I made such a job about six months ago. There is no tool or specific book available. You should have a good MFC book (there are many of them ). I had to rewrite the whole code, but the old OWL code was not completely useless; I have cut&pasted about 50% of the code.
You have to rewrite the GUI-specific code, but you can keep all your application-specific part of the program.
It can seem a huge work, but it isn't. Let's say: it's a challenge!
0
 
LVL 2

Author Comment

by:seedy
ID: 1299497
I instinctively knew these details.  What I was looking
for is pointers to more specific details like... may be a
class mapping between OWL and MFC, or some notes that describes
the strategy that should be used, etc.  I need more details.
Thanks.
0
 
LVL 1

Accepted Solution

by:
winmeister earned 200 total points
ID: 1299498
I am afraid you are making the same mistake I did last year. There is NO class mapping, there is NO general strategy.

You have to study MFC and hope that your application specific code can be pasted. As I said, the GUI code has to be re-writtem. Let's say, OWL's TWindow class is completely different from MFC's CWnd. You cannot just change the class name, but you have to re-write the code. MFC doesn't have the SetupWindow method, but it uses other ways to initialize the window.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

911 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

18 Experts available now in Live!

Get 1:1 Help Now