Discussion Locked

16-bit to 32-bit conversion using Borlan

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to convert a project written in C from a 16-bit platform to a 32-bit platform using Borland C++ (4.52). What steps do I need to take? Are there changes in the code that need to be made along with what option changes in Borland??
Thanks

4 replies

by shariqsaad

You need to
a)
declare all "int" variable to "long int" variables since "int variables" are 16 bit in length and now u need them to be 32 bit in length and "long int" would do that.

b)
beside this if you have used registers like _AX ..... then make sure that they are upgraded to _EAX and _AH to _AX

c) Most importantly if you are using malloc function for memory allocation than use the far memory allocation approach. i dont remeber the syntax used for far memory allocation correctly. but than you can find it in help index of "Malloc()"

shariqsaad@yahoo.com

This discussion is closed to new replies.