LINKNLOAD Function

Provides simplified access to external routines in shareable images and Dynamic Link Libraries (DLLs).

Usage

Input Parameters

Returned Value

Keywords


NOTE: In general, LINKNLOAD cannot know what language an object module being called was created from. The Vmsstrdesc keyword tells LINKNLOAD that your object module was created from FORTRAN code and that it is expecting string descriptors.

Discussion


Windows Users: The LINKNLOAD function provides simplified access to external routines in Dynamic Link Libraries (DLLs). LINKNLOAD calls a function in a DLL and returns a scalar value. Parameters are passed through PV-WAVE to the specified external function by reference, thus allowing the external function to alter values of PV-WAVE variables. It is the simplest method for attaching your own C code to PV-WAVE.

UNIX and OpenVMS Users: LINKNLOAD calls a function in an external sharable object and returns a scalar value. It is the simplest method for attaching your own C code to PV-WAVE.

CAUTION: Be careful to ensure that the number, type, and dimension of the parameters passed to the external function match what it expects (this can most easily be done from within PV-WAVE before calling LINKNLOAD). Furthermore, the length of string parameters must not be altered and multi-dimensional arrays are flattened to one-dimensional arrays.

Accessing the Data in PV-WAVE Variables


NOTE: For for detailed information on these methods, see the
PV-WAVE GUI Application Developer's Guide.

Programming Notes


UNIX Users: For AIX, the symbol entry point must be specified when the external shareable object is built, by using the -e flag, and thus the function symbol parameter to LINKNLOAD has no effect on AIX.

UNIX/OpenVMS Examples

Accessing the External Function with LINKNLOAD

Windows Examples

Other Examples

See Also





doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.