I used the macro that's a part of the visual c++ 6 environment for creating member variables and named the class type and specified it as private. The book I am learning the material from instructed me to include a similar name as the class type in #include "" statement of the main cpp program and I followed those instructions accordingly. When I compile the application I get errors in the header file for the main application involving the new member variable declaration and class type.
private:
CPaintDlg m_dlgPaint;
Errors include : missing (;) before m_dlgPaint identifier
missing storage class specifiers
If anyone knows anything about this I would be grateful.
Jim
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement