
Originally Posted by
Michiel
Yes, include mymainform.h into mylightdialog.cpp. In mydialog.h you only needed the name. In the .cpp you need the actual class (probably).
sorry but #include "mymainfrom.h" in .cpp seems necessary....don't compile with only class mymainform...
these are the errors:
myLightDialog.cpp(27): error C2027: use of undefined type 'myMainForm'
myLightDialog.cpp(27): error C2227: left of '->isEnabled' must point to class/struct/union
myLightDialog.cpp(27): error C2227: left of '->tab1' must point to class/struct/union
myLightDialog.cpp(28): error C2027: use of undefined type 'myMainForm'
myLightDialog.cpp(27): error C2027: use of undefined type 'myMainForm'
myLightDialog.cpp(27): error C2227: left of '->isEnabled' must point to class/struct/union
myLightDialog.cpp(27): error C2227: left of '->tab1' must point to class/struct/union
myLightDialog.cpp(28): error C2027: use of undefined type 'myMainForm'
To copy to clipboard, switch view to plain text mode
Bookmarks