Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Feb : Hosting an old text mode application in a form

www.cryer.info
Managed Newsgroup Archive

Hosting an old text mode application in a form

Subject:Hosting an old text mode application in a form
Posted by:"Francois Piette [ICS & Midware]" (francois.piet..@overbyte.be)
Date:Fri, 8 Feb 2008 14:48:42

Hi !

I have an old win32 text mode application that I would like to "host" into a
new VCL-forms application.
The old application is written in MSVC 6 and make heavy use of win32 API
console functions to move cursor, select character attributes and handle the
keyboard and the mouse. I have full source code and can do some changes if
needed.
The new application is a full blown Delphi VCL forms application for which I
have full source code and can do any required changes.

The new application UI is based on a TPageControl. I would like to have the
old application displayed in one of the tabsheets (of course the old
application will still look as a 15 years old application, but it will be
inside the new one). I'm able to write any special component if required.

Since the old application make use of console mode API functions, it is not
possible to use I/O redirection and catch application output or feed
application input.

Rewriting the old application is not an options even if I have full source
code: this is a very large application having more than one million C-code
lines split in more than one thousand source files.

I need a kind of local-single application VNC like interface between the old
and the new application.

Any idea about how to implement this ?


Thanks for your ideas.

--
francois.piette@overbyte.be
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be

Replies:

www.cryer.info
Managed Newsgroup Archive