Oh, dear friend, I think u've made a mistake! In my opinion, the CDoc class in your project is constructed before the CMainFrame class, and the status bar is created in Oncreate() function of the CMainFrame class. So, you'd used a status object before you created it. Am I right? OK, U can resolve this by many methods.there r 2 simple resolutions follow: 1. U can do this in the CMainFrame class after the status bar object is created. 2. U can do it in the CView class as the same. -- modified at 4:36 Tuesday 6th February, 2007
freeman