22.02.2014 Views

with DOS/4GW? - Open Watcom

with DOS/4GW? - Open Watcom

with DOS/4GW? - Open Watcom

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table of Contents<br />

16.5 Default Windowing Library Functions ....................................................... 150<br />

17 Creating 32-bit Windows 3.x Applications ............................................................... 153<br />

17.1 The Sample Application ............................................................................. 153<br />

17.2 Building and Running the Sample Windows 3.x Application .................... 153<br />

17.3 Debugging the Sample Windows 3.x Application ..................................... 156<br />

18 Porting Non-GUI Applications to 32-bit Windows 3.x ............................................ 159<br />

18.1 Console Device in a Windowed Environment ............................................ 159<br />

18.2 The Sample Non-GUI Application ............................................................. 160<br />

18.3 Building and Running the Non-GUI Windows 3.x Application ................ 160<br />

18.4 Debugging the Non-GUI Windows 3.x Application .................................. 163<br />

18.5 Default Windowing Library Functions ....................................................... 164<br />

19 The <strong>Watcom</strong> 32-bit Windows 3.x Extender .............................................................. 167<br />

19.1 Pointers ....................................................................................................... 167<br />

19.2 Implementation Overview .......................................................................... 168<br />

19.3 System Structure ......................................................................................... 170<br />

19.4 System Overview ........................................................................................ 171<br />

19.5 Steps to Obtaining a 32-bit Application ..................................................... 172<br />

20 Windows 3.x 32-bit Programming Overview ........................................................... 173<br />

20.1 WINDOWS.H ............................................................................................. 174<br />

20.2 Environment Notes ..................................................................................... 175<br />

20.3 Floating-point Emulation ............................................................................ 175<br />

20.4 Multiple Instances ....................................................................................... 175<br />

20.5 Pointer Handling ......................................................................................... 176<br />

20.5.1 When To Convert Incoming Pointers ........................................... 177<br />

20.5.2 When To Convert Outgoing Pointers ........................................... 178<br />

20.5.2.1 SendMessage and SendDlgItemMessage ...................... 178<br />

20.5.3 GlobalAlloc and LocalAlloc ........................................................ 180<br />

20.5.4 Callback Function Pointers .......................................................... 180<br />

20.5.4.1 Window Sub-classing .................................................... 183<br />

20.6 Calling 16-bit DLLs .................................................................................... 184<br />

20.6.1 Making DLL Calls Transparent ................................................... 186<br />

20.7 Far Pointer Manipulation ............................................................................ 187<br />

20.8 _16 Functions ............................................................................................. 188<br />

21 Windows 32-Bit Dynamic Link Libraries ................................................................. 191<br />

21.1 Introduction to 32-Bit DLLs ....................................................................... 191<br />

21.2 A Sample 32-bit DLL ................................................................................. 192<br />

21.3 Calling Functions in a 32-bit DLL from a 16-bit Application ................... 195<br />

viii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!