Subj : Re: Conversion from 16-bit app to 32-bit app To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Thu Mar 24 2005 12:28 pm Vida wrote: >There is an 16-bit windows application builded by Borland C++ 5.01. It's >very big and very hard to debug (it seems that I have to use turbo >debugger...). So, I want to convert it to 32-bit application. What shall I >do and where shall I pay special attention? sizeof( int ) is now 4 instead of 2. If you have any ints in structures or otherwise rely on the size of int being 2, then that needs to be fixed. "far" pointers are now just pointers. All pointers will now be 32 bits. Any structures or other code that relies on the size of pointers will need to be fixed. Default data alignment goes up to 4 from 2. Could cause problems. All parameters are pushed as 32bit entities, even BYTE parameters use 4 bytes. (You need to know this if you are using ASM routines.) Some 16bit Windows APIs are suggested by MS as "don't use". Those are the majors, there are probably many more minor things that you could fix, but the above should get you close to working. .