Contents
LabWindows/CVI Programmer Reference Manual viii
©
National Instruments Corporation
Borland C++ Builder.........................................................................................3-17
Watcom Pull-in References..............................................................................3-17
Creating Object and Library Files in External Compilers for Use
in LabWindows/CVI.....................................................................................................3-18
Microsoft Visual C/C++...................................................................................3-18
Borland C/C++..................................................................................................3-18
Watcom C/C++.................................................................................................3-19
Symantec C/C++...............................................................................................3-19
Creating Executables in LabWindows/CVI....................................................................3-20
Creating DLLs in LabWindows/CVI..............................................................................3-20
Customizing an Import Library.........................................................................3-20
Preparing Source Code for Use in a DLL.........................................................3-21
Calling Convention for Exported Functions.......................................3-21
Exporting DLL Functions and Variables............................................3-22
Include File Method............................................................................3-22
Export Qualifier Method.................................................................... 3-22
Marking Imported Symbols in Include File Distributed
with DLL.........................................................................................3-23
Recommendations..............................................................................3-24
Automatic Inclusion of Type Library Resource for Visual Basic.................... 3-24
Creating Static Libraries in LabWindows/CVI...............................................................3-25
Creating Object Files in LabWindows/CVI....................................................................3-26
Calling Windows SDK Functions in LabWindows/CVI.................................................3-26
Windows SDK Include Files.............................................................................3-26
Using Windows SDK Functions for User Interface Capabilities..................... 3-27
Using Windows SDK Functions to Create Multiple Threads...........................3-27
Automatic Loading of SDK Import Libraries...................................................3-27
Setting Up Include Paths for LabWindows/CVI, ANSI C, and SDK Libraries..............3-28
Compiling in LabWindows/CVI for Linking in LabWindows/CVI.................3-28
Compiling in LabWindows/CVI for Linking in an External Compiler............3-28
Compiling in an External Compiler for Linking in an External Compiler.......3-28
Compiling in an External Compiler for Linking in LabWindows/CVI............3-29
Handling Hardware Interrupts under Windows95/NT ...................................................3-29
Chapter 4Windows 3.1 Compiler/Linker Issues
Using Modules Compiled by LabWindows/CVI............................................................4-1
Using 32-Bit Watcom Compiled Modules underWindows 3.1...................................... 4-1
Using 32-Bit Borland or Symantec Compiled Modules under Windows3.1 .................4-2
16-Bit Windows DLLs....................................................................................................4-3
Helpful LabWindows/CVI Options for Working with DLLs...........................4-4
DLL Rules and Restrictions..............................................................................4-4

00ProRef.book : 00ProRefTOC.fm Page viii Monday, March 9, 1998 3:23 PM