Contents
LabWindows/CVI Programmer Reference Manual vi
©
National Instruments Corporation
General Protection Errors..................................................................................1-11
Library Protection Errors..................................................................................1-11
Disabling User Protection.................................................................................1-12
Disabling Protection Errors at Run-Time...........................................1-12
Disabling Library Errors at Run-Time...............................................1-12
Disabling Protection for Individual Pointer........................................1-12
Disabling Library Protection Errors for Functions.............................1-13
Details of User Protection.................................................................................1-14
Pointer Casting...................................................................................1-14
Dynamic Memory...............................................................................1-15
Avoid Unassigned Dynamic Allocation in
Function Parameters..........................................................1-15
Library Functions...............................................................................1-16
Unions.................................................................................................1-16
Stack Size........................................................................................................................1-16
Include Paths...................................................................................................................1-17
Include Path Search Precedence.......................................................................1-17
Chapter 2Using Loadable Compiled Modules
About Loadable Compiled Modules...............................................................................2-1
Advantages and Disadvantages of Using Loadable Compiled Modules
inLabWindows/CVI ......................................................................................2-2
Using a Loadable Compiled Module as an Instrument Driver
ProgramFile ...................................................................................................2-2
Using a Loadable Compiled Module as a User Library....................................2-3
Using a Loadable Compiled Module in the Project List...................................2-3
Using a Loadable Compiled Module as an External Module...........................2-4
Notification of Changes in Run State...............................................................2-4
Example 1...........................................................................................2-5
Example 2...........................................................................................2-6
Using Run State Change Callbacks in a DLL...................................................2-6
Compiled Modules that Contain Asynchronous Callbacks..............................2-7
Chapter 3Windows 95/NT Compiler/Linker Issues
Loading 32-Bit DLLs under Windows95/NT ................................................................3-1
DLLs for Instrument Drivers and User Libraries..............................................3-2
Using The LoadExternalModule Function....................................................... 3-2
Link Errors when Using DLL Import Libraries................................................3-2
DLL Path (.pth) Files Not Supported................................................................3-2
16-Bit DLLs Not Supported..............................................................................3-2

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