2. USING MFC APPLICATION WIZARD
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 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.
No comments:
Post a Comment