Saturday 20 January 2018

USING MFC APPLICATION WIZARD


2.      USING MFC APPLICATION WIZARD

s   
USING MFC APPLICATION WIZARD
 Step 1:- Select a NEW file.
Step 2:-Select a project tab from new window and from that select MFC Application Wizard [exe] option and give a project name as windows and click ok.
Step 3:-
Þ    MFC Application Wizard Application Window is appeared.
Þ    Select single Document default settings in step1, click next
Þ    Select default settings from step2 to step6 and click finish
Þ    New projects information on window will appear and click ok.
Step 4:- Go to workspace window and select class view tab.
Step 5:-To customize our program add code to OnDraw() method. For that Double click on CWindowsView class, and in that select OnDraw() method.
                        Void CWindowsView::OnDraw(CDC *pDC)
                                    {         
                                                CString StrData = “Welcome to M.R.P.G. College”;
                                                CWindowsDoc* pDoc = Get Document();
                                                ASSERT_VALID(pDoc);
                                                pDC->TextOut(200,150,StrData);
                                    }
Step6:-Build…….Compile……..Execute.



0 comments:

Post a Comment