Infact, i think, i have got some hint.. Is there any restriction to include MainApp.h (ESPL.h in my example)..?? Coz, i observed one thing just now..
There are four classes..
ESPL is the main program which implements app.
FrameEX is derived from wxFrame.
BasicGLPane is derived from wxGLCanvas.
And, ETreeWindow is derived from wxTreeCtrl.
Now, I have declared an object of FrameEX in ESPL. So I got to include FrameEX in ESPL. And am including BasicGLPane in FrameEX, as i want GLCanvas to be displayed in the frame. Another am using the object of ETreeWindow in FrameEX.
Now the funniest part is I included ESPL.h in both, BasciGLPane and ETreeWindow, and it is working fine with ETreeWindow, but giving error with BasicGLPane.
Now i used
and the error what am getting is in FrameEX file. And cursor is pointing to the line where i had declared these two objects
And the Error message is
error C2143: syntax error : missing ';' before '*'
Whereas i check whole code whether ';' is missing any where..
but no use..
Any comments on this..?
Thanks and Regards