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 />

39 Developing an OS/2 Physical Device Driver ............................................................ 319<br />

40 Using the IBM OS/2 WorkFrame/2 .......................................................................... 325<br />

AutoCAD ADS Programming Guide ........................................................................................ 327<br />

41 Creating AutoCAD Applications .............................................................................. 329<br />

41.1 Compiling an ADS Application ................................................................. 329<br />

41.2 Linking an ADS Application ...................................................................... 330<br />

41.3 One-Step Compiling and Linking ............................................................... 330<br />

41.4 Debugging an ADS Application ................................................................. 331<br />

Novell NLM Programming Guide ............................................................................................. 333<br />

42 Creating NetWare 386 NLM Applications ............................................................... 335<br />

Mixed Language Programming ................................................................................................. 337<br />

43 Inter-Language calls: C and FORTRAN ................................................................... 339<br />

43.1 Symbol Naming Convention ...................................................................... 339<br />

43.2 Argument Passing Convention ................................................................... 340<br />

43.3 Memory Model Compatibility .................................................................... 341<br />

43.4 Linking Considerations ............................................................................... 341<br />

43.5 Integer Type Compatibility ........................................................................ 342<br />

43.6 How do I pass integers from C to a FORTRAN function? ......................... 342<br />

43.7 How do I pass integers from FORTRAN to a C function? ......................... 343<br />

43.8 How do I pass a string from a C function to FORTRAN? ......................... 345<br />

43.9 How do I pass a string from FORTRAN to a C function? ......................... 346<br />

43.10 How do I access a FORTRAN common block from <strong>with</strong>in C? ............... 347<br />

43.11 How do I call a C function that accepts a variable number of<br />

arguments? ................................................................................................ 349<br />

Common Problems .................................................................................................................... 351<br />

44 Commonly Asked Questions and Answers ............................................................... 353<br />

44.1 Determining my current patch level ........................................................... 353<br />

44.2 Converting to <strong>Watcom</strong> C/C++ .................................................................... 354<br />

44.2.1 Conversion from UNIX compilers ............................................... 357<br />

xii

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

Saved successfully!

Ooh no, something went wrong!