hi
The following is a simple win app I found on the internet..Because it is a blank application
I tried to add a simple text ("This is my first WinnApp") to it..
I got some error as to where and how to declare " OnPaint()"
I will be happy if you can help me out
thanks
Code:#include <afxwin.h> class MFC_Tutorial_Window :public CFrameWnd { public: MFC_Tutorial_Window() { Create(NULL,"MFC Tutorial Part 1 CoderSource Window"); } }; class MyApp :public CWinApp { MFC_Tutorial_Window *wnd; public: BOOL InitInstance() { wnd = new MFC_Tutorial_Window(); m_pMainWnd = wnd; m_pMainWnd->ShowWindow(SW_SHOW); return TRUE; } }; MyApp theApp ;


Reply With Quote