I just bought Dialogblocks : helpfull GUI tool!
I defined member data (to store various version strings) in the
Application class (with Dialogblocks)
DB created member functions... until now it's allright
I want to get version informations from another dialog class and cpp
file (a popup copyright dialog box)
Trying to access those members function of my application class I
include MyApplication.h in myInfoDialog.cpp ,
and in the code, at the end of createControls function of my dialog
box, I use myApplicationInstanceName->getACopyrightInformation() to
get the member string.
I got an error message from DevCpp :
"expected primary-expression before '->' token "
With the include, the code completion is OK with
myApplicationInstanceName and the member function names !?
Next I try to access the application instance with :
wxGetApp()->getACopyrightInformation()
error message:
"base operand of `->' has non-pointer type `myApplicationInstanceName' "
or with :
wxTheApp->getACopyrightInformation()
error messsage :
" 'class wxApp' has no member named 'getACopyrightInformation' "
I really want to store application informations in the application
class... wath's the way?
Thanks a lot for your help
DoMi
(note: all the names are fake but explicit)
.