Главная страница | назад

Article #16559: Moving from OWL 2.x and OWL classes unknown

 Question and Answer Database

FAQ1559C.txt   Moving from OWL 2.x and OWL classes unknown
Category   :OWL
Platform    :All
Product    :BC++  5.x


When moving OWL 2.x code to OWL 5.x start to get errors on OWL
class myCombo : public TComboBox
 --->generates error: type name expected
TComboBox * ptr; // global
 --->generates error: Declaration syntax error
TComboBox * ptr; // local
 --->generates error: undefined symbol TComboBox


This is due to a change in the manner that OWL manages 
precomplied headers for you . It used to be that 
defining _OWLPCH gave you OWLALL ( essentially all OWL 
classes ) rather than OWLCORE ( just the main ones ). 

You can include all OWL classes ( like you were doing before ) by
#define'ing _OWLALLPCH and including pch.h ( used to be owlpch.h )
or you can #define _OWLPCH and include pch.h. 

This will make for more efficient compiles but you will have to add 
explicit inclusions of header files for things like TComboBox and

7/2/98 10:32:32 AM

Last Modified: 01-SEP-99