Qhimm's apps use MFC if I'm not mistaken, so there's no main() function as such. Take CGrieverDlg as your starting point, but if you're not familiar with MFC I'd steer clear if I were you.