a lot of issues

1> Touching "Debug\propertyPage.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> propertyPageView.cpp
1>d:\pt facultate\c++\propertypage\propertypage\propertypageview.cpp(153): error C2065: 'CMyPropertySheet' : undeclared identifier
1>d:\pt facultate\c++\propertypage\propertypage\propertypageview.cpp(153): error C2065: 'pobj' : undeclared identifier
1>d:\pt facultate\c++\propertypage\propertypage\propertypageview.cpp(154): error C2065: 'pobj' : undeclared identifier
1>d:\pt facultate\c++\propertypage\propertypage\propertypageview.cpp(154): error C2061: syntax error : identifier 'CMyPropertySheet'
1>d:\pt facultate\c++\propertypage\propertypage\propertypageview.cpp(155): error C2065: 'pobj' : undeclared identifier
1>d:\pt facultate\c++\propertypage\propertypage\propertypageview.cpp(155): error C2227: left of '->DoModal' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\pt facultate\c++\propertypage\propertypage\propertypageview.cpp(156): error C2065: 'pobj' : undeclared identifier
1>d:\pt facultate\c++\propertypage\propertypage\propertypageview.cpp(156): error C2541: 'delete' : cannot delete objects that are not pointers
1>d:\pt facultate\c++\propertypage\propertypage\propertypageview.cpp(158): error C2059: syntax error : '}'
1>d:\pt facultate\c++\propertypage\propertypage\propertypageview.cpp(158): error C2143: syntax error : missing ';' before '}'
1>d:\pt facultate\c++\propertypage\propertypage\propertypageview.cpp(158): error C2059: syntax error : '}'
1> Varsta.cpp
1>d:\pt facultate\c++\propertypage\propertypage\varsta.h(15): error C2065: 'IDD_VARSTA' : undeclared identifier
1> Numeprenume.cpp
1>d:\pt facultate\c++\propertypage\propertypage\numeprenume.h(15): error C2065: 'IDD_NUMEPRENUME' : undeclared identifier
1> MyPropertySheet.cpp
1>d:\pt facultate\c++\propertypage\propertypage\varsta.h(15): error C2065: 'IDD_VARSTA' : undeclared identifier
1>d:\pt facultate\c++\propertypage\propertypage\numeprenume.h(15): error C2065: 'IDD_NUMEPRENUME' : undeclared identifier
1>d:\pt facultate\c++\propertypage\propertypage\mypropertysheet.h(20): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\pt facultate\c++\propertypage\propertypage\mypropertysheet.h(20): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\pt facultate\c++\propertypage\propertypage\mypropertysheet.h(22): error C2146: syntax error : missing ';' before identifier 'm_NumePrenume'
1>d:\pt facultate\c++\propertypage\propertypage\mypropertysheet.h(22): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\pt facultate\c++\propertypage\propertypage\mypropertysheet.h(22): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\pt facultate\c++\propertypage\propertypage\mypropertysheet.cpp(21): error C2065: 'm_NumePrenume' : undeclared identifier
1> Generating Code...
1>
1>Build FAILED.
how do I make this program work? thank you in advance
Something hurts. cure it.
It would help if you actually posted some code, instead of a bunch of errors. It would be better if we had a visual.
the problem is that it is an MFC application and it is structured in three classes CNumePrenume CVarsta and CMypropertysheet. Each class must have two variables m_NumePrenume, m_Varsta. I have add them in class view after compiling i recive this errors. the application is created in visual studio 2010
On line 153 of propertypageview.cpp you're trying to use CMyPropertySheet, but the compiler has not heard of CMyPropertySheet at that stage. You need to declare or define it before then.
Topic archived. No new replies allowed.