sorry if this is the wrong forum....it could be placed in either the game programming forum or the windows programming forum...but i decided to put it here...anyway, i have a dialog box, and when one of its buttons are pressed i wan't it to call a function that contains code for rendering 3D geometry (ie a cube).