Next Previous Up Top Contents Index

1 Introduction to the FLI

1.2 Using the FLI to get the cursor position

Note: The rest of the examples in this chapter only work for LispWorks for the Windows operating system.

The following example shows how to use the FLI to call a C function in a Win32 library. The function we are going to call returns the screen position of the mouse pointer, or cursor. The example consists of three stages: setting up the correct data types to pass and receive the data, defining and calling an FLI function to call the Win32 function, and collecting the values returned by the Win32 function to find where the cursor is.

1.2.1 - Defining FLI types
1.2.2 - Defining an FLI function
1.2.3 - Accessing the results

LispWorks Foreign Language Interface - 12 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker