Documentation Archive Developer
Search

ADC Home > Reference Library > Technical Q&As > Legacy Documents > Graphics & Imaging >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

NOTE: This Technical Q&A has been retired. Please see the Technical Q&As page for current documentation.

Checking Whether QD3D Is Available


Q: How do I check in my application whether QuickDraw 3D is available? My application needs to be able to work even if the QD3D libraries are not loaded.

A: Refer to the section "Initializing and Terminating QuickDraw 3D" on pg. 1-16, chapter 1 of " 3D Graphics Programming with QD3D." Basically, you need to "weak" link to the QD3D libraries in your application and check whether the address of the QD3D functions you need in the library have been resolved at run-time.

For a good discussion about weak linking see Technote 1083 " Weak-Linking to a CFM-based Shared Library." Note: the function MyEnvironmentHsQuickDraw3D in listing 1-1 of "3D Graphics Programming with QuickDraw 3D" contains a bug. Technote 1083 contains the correct code.

[Jul 11 1997]