All Manuals > CAPI User Guide and Reference Manual > 2 Getting Started

2.1 Using the CAPI package

All symbols in this manual are exported from either the CAPI or COMMON-LISP packages unless explicitly stated otherwise. To access CAPI symbols, you could qualify them all explicitly in your code, for example capi:output-pane.

However it is more convenient to create a package which has CAPI on its package-use-list:

(defpackage "MY-PACKAGE"
  (:add-use-defaults t)
  (:use "CAPI"))

This creates a package in which all the CAPI symbols are accessible. To run the examples in this guide, first evaluate:

(in-package "MY-PACKAGE") 

CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:16