Migrating 16bit DOS based console application developed in C/C++ to 64bit on Windows 10

Jaya kumar Varadharajulu 1 Reputation point
2021-09-02T18:22:28.267+00:00

Hello All,

I am trying to migrate a MSDOS based console application developed in C/C++ language on 16bit platform using TC86 Borland C++ 3.1 to Windows 10 64 bit platform. What are the procedure I need to adopt so that I can easily migrate my application to 64bit Windows 10 platform. Currently I am trying the build the source code using Borland C++ 5.5 compiler with C Free IDE on Windows 10 64 bit platform for converting the application but I am facing linking errors as shown below

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland

while Linking , I am facing errors like

Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland

Fatal: Unsupported 16-bit segment(s) in module CLEARRX

Also the 16bit application developed in MSDOS is trying to access COM Ports for data communication and uses several memory addressing techniques using far , near and huge pointer to address the memory.

Current system details :

Build : Windows 10 Enterprise , 64 bit V5.4

Processor : AMD Ryzen ,2.3GHZ

RAM : 16GB

Could someone help with the detailed procedure and necessary software tools to migrate to 64 bit or Is there a way to run the 16 b

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,637 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sam of Simple Samples 5,531 Reputation points
    2021-09-02T20:08:40.103+00:00

    Do you have a spare system you can use to run DOS or equivalent? Perhaps you can purchase one for cheap. Otherwise when I search for DOS emulators I get various articles about virtual machines. The following are possibilities.

    There are many more articles like those.

    Otherwise there is not likely an easy solution. Someone will need to study the source and know how to convert it to Windows.