Click to See Complete Forum and Search --> : Turbo C Win16 to VC++ or C# Win32 conversion


sfts2
September 29th, 2005, 02:07 PM
I have inherited a Windows 16-bit application that was originally written in Borland Turbo-C. While this is a fairly low priority application (600 users), I have been tasked to convert it to 32-bit with 1 resource that has very little programming experience.

Our only goal is to make it compatible with WinXP (no crash), and make sure that we can rebuild the product in the event of a dire emergency. None of the original developers are available.

Are there any tools that can assist with this conversion? Is there anyone with any conversion experience of this type that can share any insight?

One thought we had was to just try to compile the C code using the MSVC++ compiler, which I do not believe will work due to potential use of proprietary Turbo C features, not dealing with the actual differences between Win16 memory address vs 32 bit, etc. Am I wrong here?

I need help urgently.

Thanks in advance!

A PHB

MrViggy
September 29th, 2005, 02:36 PM
I doubt there is a "conversion" program of the type your asking for.

I'd use "brute force," as you suggested. Either (a) look through the code line by line, manually converting all the 16 bit specific code to 32 bit code; or (b) just compile it, and fix what's broken.

I've never worked on 16 bit code, but it seems to me that all you have to do would be to remove all the "far" keywords, and just use straight pointers.

Viggy