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.

Errors in QADrawContextNew


Q: My code looks just like the sample code, but QADrawContextNew returns an error. What am I doing wrong?

A: You need to make sure that "enums always int" is turned on in your compiler settings. One good way to esure this is the following:




#ifdef __MWERKS__
    #if !__option (enumsalwaysint)
 
        #error "Enums always int must be turned on for RAVE"
  
     #endif
 
#endif

[Apr 20 1998]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.