first i like to thank you for your help. put i think ther is some thing is messing in this code.
1- when compile a compile error appear Sayes:'Cube' does not contain a definition for 'Position'
. So I commented this line and try to recompile.
2- The application ran but there is no cube . This was expected becouse we didn't even make an Object from the Cube class "this is so strange".
3- a last thing , How the 'view' Object will draw the cube without any code that till the 'view' Object to draw the cube.
Please reply becouse i want to learn programming OpenGl very much.
thanx