National Instruments 320685D-01 Drums User Manual


 
Contents
©
National Instruments Corporation vii LabWindows/CVI Programmer Reference Manual
Run State Change Callbacks in DLLs...............................................................3-2
DllMain..............................................................................................................3-3
Releasing Resources when a DLL Unloads ......................................................3-3
Generating an Import Library............................................................................3-4
Default Unloading/Reloading Policy ................................................................3-4
Compatibility with External Compilers...........................................................................3-4
Choosing Your Compatible Compiler...............................................................3-5
Object Files, Library Files, and DLL Import Libraries.....................................3-5
Compatibility Issues in DLLs............................................................................3-5
Structure Packing ................................................................................3-6
Bit Fields.............................................................................................3-6
Returning Floats and Doubles.............................................................3-7
Returning Structures ...........................................................................3-7
Enum Sizes..........................................................................................3-7
Long Doubles......................................................................................3-7
Differences between LabWindows/CVI and the External Compilers...............3-7
External Compiler Versions Supported.............................................................3-8
Required Preprocessor Definitions....................................................................3-8
Multithreading and the LabWindows/CVI Libraries.......................................................3-8
Using LabWindows/CVI Libraries in External Compilers..............................................3-9
Include Files for the ANSI C Library and the LabWindows/CVI
Libraries..........................................................................................................3-10
Standard Input/Output Window ........................................................................3-10
Resolving Callback References from .UIR Files ..............................................3-10
Linking to Callback Functions Not Exported from a DLL.................3-11
Resolving References from Modules Loaded at Run-Time..............................3-12
Resolving References to the LabWindows/CVI
Run-Time Engine.............................................................................3-12
Resolving References to Symbols Not in Run-Time Engine..............3-12
Resolving Run-Time Module References to Symbols
Not Exported from a DLL................................................................3-13
Run State Change Callbacks Are Not Available in External Compilers...........3-13
Calling InitCVIRTE and CloseCVIRTE...........................................................3-14
Watcom Stack Based Calling Convention ........................................................3-15
Using Object and Library Files in External Compilers ...................................................3-15
Default Library Directives.................................................................................3-15
Microsoft Visual C/C++ .....................................................................3-16
Borland C/C++....................................................................................3-16
Watcom C/C++ ...................................................................................3-16
Symantec C/C++.................................................................................3-16
Borland Static versus Dynamic C Libraries......................................................3-17
Borland Incremental Linker ..............................................................................3-17
00ProRef.book : 00ProRefTOC.fm Page vii Monday, March 9, 1998 3:23 PM