Subj : Declaring a pointer to a To : Herbert Bushong From : Neil Heller Date : Wed Jan 08 2003 04:11 pm HB> try this: HB> ::> class a_class HB> ::> { HB> ::> // some stuff HB> ::> }; HB> typedef class a_class* a_classptr; HB> ::> class b_class HB> ::> { HB> ::> a_class * pa_class; // the first error... why ? HB> change to: HB> a_classptr pa_class; I did a slight variation on this but it was wrong. Can you tell me why? In file a.h, just below a_class I did typedef a_class * pa_class; Then, in class_b I did: pa_class m_paclass; This resulted in 2 errors: a_classptr: missing decl-specifiers syntax error: missing ';' before '*' I am still off... somewhere... but can't figure it out. HB> or alternatively: HB> class a_class * pa_class; HB> ::> // some other stuff HB> ::> public: b_class(int, a_class *); HB> ::> } HB> might work. Maybe, but I think that the first style is cleaner. þ CMPQwk 1.42 999 --- Maximus/2 3.01 * Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000) .