About the Thunk Compiler
Writing Win32-based applications provides the following advantages over writing 16-bit Windows-based applications:
- The flat address space. Your application can access up to 2 gigabytes of memory. You no longer need to consider the boundaries and limitations imposed by a segmented architecture. In addition, many system resource limits have been increased.
- Better performance. Win32 platforms have faster memory management, networking, file operations, and floating-point operations. Your application can use threads to provide a responsive user interface. The system uses preemptive multitasking to schedule threads.
- Greater robustness. The system does not crash often, but if it does crash, it does not destroy data or cause other executing applications to crash.
Despite these advantages, however, you may have problems porting your application to the Win32 API. For example, when porting your application to take advantage of new system features, you might find you must use features from an existing 16-bit DLL that has not been ported to Win32. Rather than delay the release of your application while waiting for a ported version the 16-bit DLL, you can use the thunk compiler to call the 16-bit DLL from your Win32-based application.