Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting C Programs to W95/NT

Status
Not open for further replies.

Markus2000

Programmer
Apr 6, 2000
1
GB
I have a similar requirement to BOBP ....

I have several Applications writted in C for Unix primarily and then converted to DOS MSC version 6 using -DDOS compiler directives etc.etc.

All of the programs are fairly standard Applications (such as Credit Control) and therefore they all have extensive Screen Entry and they all use the Informix C-ISAM Libraries for file handling, the programs all call inbuilt macros for virtually everything so currently there is 1 set of source codes that can be re-compiled on SCO, AIX, Sun, DOS etc.

Does anyone have any good tips / pointers / books to read on how to convert this stuff to windows, my main expertise is with C and Unix and my Windows knowledge is fairly limited.
BOBP - Did you resolve your query ?

Also there is supposed to be some software from Microsoft that allows you to recompile legacy Unix Code under NT (can't remember what it's called) - has anyone tried this ?

Regards
Mark.

 
The shortest way is first you just compile your code on W95/NT. Then try to remove the conflicts. <br><br>Else you try to use only ANSI sttandard functions nothing else. There are some points in making a portable program. Just make a search for that<br><br>Siddhartha Singh<br><A HREF="mailto:ssingh@aztecsoft.com">ssingh@aztecsoft.com</A>
 
Hi Siddhartha,<br><br>I think Markus' biggest problems may be converting to:<br><br>1 - the windows screen handling<br><br>2 - the windows event driven model<br><br>I've done *some* work like this (converting a qbasic prog to VB4) and worked like this:<br><br>Laid all of the screens out in the Windows IDE<br><br>Copy, paste and edit code into the windows events to add the functionality I needed. Repeat the &quot;Edit&quot; part of this step as needed...<br><br>It worked, but you couldn't call it fun.<br><br>I knew the application, and its interdependence between its various modules, very well so it was possible for me to test the new version thoroughly as I went along. It would be difficult to do this without that indepth knowledge.<br><br>Regards<br><br>Mike <p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top