oe a ooae o ce oeoc oea aa

Windows oee, aaoaoe cee oaoa Microsoft Visual Studio 2008 a e C++ c cooae oe MFC. oaee oa aac oe. e cee, ayc oe, oeca cyya, aoa c oao.

,
12.12.2011
1,2 M

. ,

, , , , .

http://www.allbest.ru/

http://www.allbest.ru/

ceco oaoa ay occco eea

eeaoe aeco o oaoa

ocyaceoe oaoaeoe yeee ceo

oeccoaoo oaoa

eeo - aac ocyace eec ece

ocea aca

ycooy oey

o ce eoo oaoa

o cye II yca

ceaoc 230201.65

oaoe cce

eoo

. -091

ac . .

aoo 2011.

oa

ao ycoo oee ocaa oaa, acaa a e ++ cee aao oe Visual Studio c cooae oe MFC.

Hyo o coca oay, oey aoc ce oa oeoc oea aa.

H

c c e, o ceo yoe cooc oaoo oecee oe co, aaoa oe Windows c cooae oo ooo aoo-o a (ae, a ) aeo ayec. oac oe aa accy ee a eee caa aa o coa oooo eeca. eaa eoo ca caa oeo L oeye o oaca ee oee coo ao. o oe aoy oaca, ce coeee oo a ++ coea ceae oe acco. ae oe a ce aec ec oa eec Windows oo ooac oaoa ceca oee cooo yo, e oe o y. a ce oo aeo yoaec aaoa oe, e co eec ooae, oeaec oea eoo L aoece c aa a. oe oo, cao oe oo oay oa, aca a ++. eco oo ooo oooo oa ee eo c aoo aya yo oae ace. oeee eoae ceca aao oe Windows oo aoaoa oecc coa oe. oo coyc eeao oe. oac oeae a ooc eeaoa oe oeee coca oe - oeae oo oooo e, eoo L, caoy ccey. eeao oe coac oee, oeaee eoa, eoca coe ec. oyc a aoo, oac coe co aaaa co oe. ooe ceca aoaoaoo coa oe a Microsoft a oy Visual ++, aaoa oey (Microsoft Foundation class). - aeae ae, coco aaee acaoo oooo aoe oa. ao ecoo aoo aee, oo yaa aaec oe eo ec, caee o oea. Wizard ooe coaa ooooe ooooe oe, a ae oe, e ee aoo oa, - eco eo coyec aooa ae. ay ac oe oacy ec coaa caocoeo. co ec oe cae oo ocoo, ooo yo o ocooe.

1. aaoa oe Visual Studio 2008

oee co aao Visual Studio 2008 yye y ao c a a. Hae, c oo LINQ , a yae aao oee coaa ee, oe aa a.

Visual Studio 2008 ooo oeoac a ae ec .NET Framework oo o e cee aao. oo coaa oe .NET Framework 2.0, 3.0 3.5, o ec oea oeco oeo oo cee.

1.2 Ho ooaec eec

Visual Studio 2008 coe oe ceca aao, oeae coae oae oe a ca coee aoa, a e-oe, oe Windows Vista, Office 2007, SQL Server 2008 Windows Server 2008. oac e ASP.NET AJAX ye oe eoo Visual Studio 2008 oo co coaa cooee eae e-eec.

1.3 ea coeca aoa ye

Visual Studio 2008 eaae ycoeecoae ceca, ooae aa coecy eeoc ya, a cye oee oecce aao ceaco o aa a aeo.

1.4 Microsoft .NET Framework 3.5

aoa .NET oeceae coe coae oae oe c yo ooaec eeco aoa aoy oo oa oye ee o aa oaoa. oaee oe, ocoee a aoe .NET Framework, oecea oeoae ec-oecco ea cce aooo cee. ece Visual Studio .NET Framework ca aooc aca oeo cyeo oa, coaa e aao oo coceoo yc a ee ec-aa [1].

1.5 eoa ccee

Visual Studio 2008 oe ycaoea a ceye oeaoe cce:

Windows Vista (x86 x64) -- ce a, a cee Starter Edition;

Windows XP (x86 x64) c ycaoe aeo ooe Service Pack 2 oee oe ec -- ce a,
a cee Starter Edition;

Windows Server 2003 (x86 x64) c ycaoe aeo ooe Service Pack 1 oee oe ec;

Windows Server 2003 R2 (x86 x64) oee oe ec;

Windows Server 2008 (x86 x64).

ycao Visual Studio 2008 oeyec oe co cey aaeca:

oecco c acoo e e 1,6 ;

y 384 a oeao a (768 a oee ao o Windows Vista);

2,2 a coooo ocaca a eco ce co cooc e eee 5400 o./;

ce c aeee e eee 1024x768;

o DVD

1.6 co aao Windows - oe c cooae oe MFC

ae Microsoft Foundation Classes (MFC) - oea a e C++, aaoaa Microsoft aa oe aaoy GUI - oe Microsoft Windows ye cooa oaoo aoa oe acco [2].

1.7 ec

oea MFC, a e ocoo oye, Borland VCL, oeae aoy c GUI ye coa aaca oe - ceeo oa, aoaec coaaeo o aaoy aey eeca ooc ey a ce ye ec o eo ocya (oaoa oo co, eeca a ey ye yea eeo eee oa ..). oacy oce eea aaca oee eooo oo ca o eca, e eyc ceae ec. aac oe e oe oeeey cyyy, ooy eo eea ee Visual ++ eycoe acea.

oe oo, MFC eocae oeo-oeoa co oeo (a. wrappers) a oeco y Windows API, ea ecoo oee yoo aoy c . o co ecae oeco coe ccey oeo (oa, e, a ..) e acco o e ee a ce ye ec oe a ecoo ee/ocooe a.

1.8 oaee oa aac oe

oaee oa oe aacy eaoao y cocoa. e coye ea aceoa: ocoe oae cyy aaca ecae e acco aceye o oe. acca eycoeo oeco ya y ae oeee oe ao oa. ye ooeee ( oce cyae eooo a y aooo acca) y oac oe oa oee oe coeo oa.

oo coco coyec oae oaoo oo co. ace coae y aaco acco, ca c oa, ceae acc - a (oo) cooe (a. massage map), coeae a cooe - yaae a oao. oaeyae oaoa ace oc ee cooecyy ay cooe [3].

1.9 co

ea ec MFC a yea ece c ceo ece 16-aoo ooa a C\C++ oa Microsoft 1992 oy. e, o aac aaoo oe c cooae API-y, ae MFC oea eca aeoe oee ooeoc oecca oaoa.

o eae ocoeoce MFC ec ec Afx, coye ea o y, aoco aa caaoo aooooo aa stdafx.h. Ha ae ca aao, o, o ocec cao aac MFC, eo aae Application Framework Extensions aeayy Afx. eee e aae a Microsoft Foundation Classes (MFC) o o co oo, o e yoa Afx oe.

Object Windows Library (OWL), aaoaa oae Borland ao c coce ooo C++, a oyy oyo, ecae o e eo. oe oo Borland eaa aaoy OWL oea aocoy e a cooae oe ao c MFC, o a e eoa oo oe MFC co oya. oee Borland yca VCL aece ae MFC.

o oa Microsoft a MFC ocae oy Microsoft.NET Framework. ao, eco a o, MFC o-eey ocaec oyo ce aaoo.

aee 2008 oa Microsoft yca, oce ooeeo eec, aeoe ooee MFC o aae MFC Feature Pack. o ooee eaaoc ycaoe a ooee Visual Studio 2008. ocoe coe o oaoe acc MFC, aa a ooe oee y occco BGGSoft. MFC aac oea ooo eeca Ribbon ecoo y ycoeecoa, ca c yye eec eea yae. oce yeoo aea ooe Visual Studio 2008 ae acc ca eoeeo ac MFC [4].

oe oe microsoft visual studio

2. ea oa

2.1 e cee

Windows - oee, aaoaoe cee oaoa Microsoft Visual Studio 2008 a e C++ c cooae oe MFC. aaa oa oecoa a ooae o ce oeoc oea aa. oaa aac ooae 10 ooco, ee oo o oe ye c oe ec eo eoee o. ea a ooc o 100 ao ae. a a oe acec 5 ao.

2.2 yoaoe aaee

ayce oa oaec aoe oo oa (c.2.1), ooo oaa eaae aa ecoae, ae ec aoc oo ooo o aee ecoa eec aaa cya ao.

cyo 2.1 - aoe oo oa

oce aa o Haa ec oaec oo eoo ooca (c.2.2) ooo aoc oe aoo ooca, ec ooca, a o ee eya, a ae o OK ea

cyo 2.2 - o eoo ooca

oce oea a 10 ooco ao oe eec aa eya (c.2.3)

cyo 2.3 - o eyaa

2.3 oeca cyya

aaoaa oa aoo oa o 10 ooco. ao o coa co acc, oo oaoy ec oe ooaee. ea acca CvariantDlg oaaa ae 2.1

aa 2.1 - ea acca

y

aeoc

ece

OnBnClickedButton1()

Protected

ae oa ooco oaaae oe ooae

OnPaint()

Protected

eecoa eya

OnInitDialog()

Protected

oaee ya '' oae...'' cceoe e

OnQueryDragIcon()

Protected

oa oa

2.4 eece eoa

oeo ao oa eoo ceye aaec: oecco Intel c acoo 800 e, cooo eco a eco ce e eee 300 a, oeaa a e eee 512 a, USB-o CD\DVD coo, oo, aaya, .

oaoe oeceee: Windows 98\2000\ME\XP\Vista\Seven

2.5 ac oe

ayca oe eooo o ceyy oceoaeoc: cooa a ec c a variant.exe ayc eo o eo .

2.6 aoa c oao

oce o oa, ao oe yo aa ay Haa ec, ocey oa eooo o oe aa oy OK, ec e yy ee ae yy aaa aa ea a e acc.

2.7 oe ae

o a c oe ooaee oe, ecooe oo.

2.8 oe ae

o a ec aaa , eyae oeo a ooco, cya ao. aa cya ao 0, acaa 100.

2.9 ecoae oa

oce ayca aa variant.exe oec aoe oo oa (c.2.4), oooe coe aooo oa, oa aaa ecoa, ecooe oo, ooo oce aee ecoa oc aaa cya ao.

cyo 2.4 - aoe oo oa

oce aa a oy Haa ec oec oo eoo ooca (c. 2.5)

cyo 2.5 - o eoo ooca

oce ee ecoe o oeo aa a OK ea oec oo ooo ooca (c.2.6)

cyo 2.6 - o ooo ooca

oce ee ecoe o oeo aa a OK ea oec oo eeo ooca (c.2.7)

cyo 2.7 - o eeo ooca

oce ee ecoe o oeo aa a OK ea oec oo eeoo ooca (c.2.8)

cyo 2.8 - o eeoo ooca

oce ee ecoe o oeo aa a ʻ ea oec oo oo ooca (c.2.9)

cyo 2.9 - o oo ooca

oce ee ecoe o oeo aa a ʻ ea oec oo ecoo ooca (2.10)

cyo 2.10 - o ecoo ooca

oce ee ecoe o oeo aa a ʻ ea oec oo ceoo ooca (c.2.11)

cyo 2.11 - o ceoo ooca

oce ee ecoe o oeo aa a ʻ ea oec oo ocoo ooca (2.11)

cyo 2.11 - o ocoo ooca

oce ee ecoe o oeo aa a ʻ ea oec oo eoo ooca (c.2.12)

cyo 2.12 - o eoo ooca

oce ee ecoe o oeo aa a ʻ ea oec oo ecoo ooca (c. 2.13)

cyo 2.13 - o ecoo ooca

oee a 10 ooco ao oe oa oc aaa cya ao (c.2.14)

cyo 2.14 - o eyaa

aee

oe ycooo oea o coao Windows oee, oooe oeae a ooae aoe oeoc oea aa. ye oe eo oe MFC. oce coa oa oee ecoo eco ayco, eee oo ee ae oe oee ecaae ec. eyae ecoa oo e oayeo.

co cooao eay

1. co oaoa a Visual C++, eoece yaa o ycy eoo oaoa ceaoc 220200,071900

2. e eo cooae Visual C++ 6.0 , , , .: aec o c, 2000.

3. eoco ., Visual C ++ MFC. yc MSD oeccoao. - : aeco e, 2000.

4. aac ., e . ooe yooco o Visual C++. c oy, 1999.

5. a yc. Visual C ++ 6. - .: aoao ao a, 1999.

6. e e, aa . oaoae a Visual C++ 6. oeccoao - .: aeco ao, 1999.

7. aeoa .. Visual C++6.0(VISUL STUDI 1998). o oaoa, .: ao - , 1999

8. ..oo, ..oo Microsoft Visual C++ MFC. oaoae Windows 95 Windows NT 2 - . (ac1) (oea cceoo oaca; .24) .: ao - , 1997

9. ..oo, ..oo Microsoft Visusl C++ MFC. oaoae Windows 95 Windows NT. (ac2) (oea cceoo oaca; .28) .: ao - , 1997

10. ..o, ..ooa eoece eoea o ooe o yco oeo (ao), aoo: -o ea,2000

oee 1

aaa acco

oee 2

c oa

// variantDlg.cpp : a eaa

//

#include "stdafx.h"

#include "variant.h"

#include "variantDlg.h" \\ oee aoo oo

#include "vopros1.h"

#include "vopros2.h"

#include "vopros3.h"

#include "vopros4.h"

#include "vopros5.h"

#include "vopros6.h"

#include "vopros7.h"

#include "vopros8.h"

#include "vopros9.h"

#include "vopros10.h"

#ifdef _DEBUG

#define new DEBUG_NEW

#endif

// aoooe oo CAboutDlg coyec oca cee o oe

class CAboutDlg : public CDialog

{

public:

CAboutDlg();

// ae aoooo oa

enum { IDD = IDD_ABOUTBOX };

protected:

virtual void DoDataExchange(CDataExchange* pDX); // oea DDX/DDV

// eaa

protected:

DECLARE_MESSAGE_MAP()

};

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)

{

}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)

{

CDialog::DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)

END_MESSAGE_MAP()

// aoooe oo CvariantDlg

CvariantDlg::CvariantDlg(CWnd* pParent /*=NULL*/)

: CDialog(CvariantDlg::IDD, pParent)

, rezult(0)

{

m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);

}

void CvariantDlg::DoDataExchange(CDataExchange* pDX)

{

CDialog::DoDataExchange(pDX);

DDX_Text(pDX, IDC_EDIT1, rezult);

DDV_MinMaxInt(pDX, rezult, 0, 100);

}

BEGIN_MESSAGE_MAP(CvariantDlg, CDialog)

ON_WM_SYSCOMMAND()

ON_WM_PAINT()

ON_WM_QUERYDRAGICON()

//}}AFX_MSG_MAP

ON_BN_CLICKED(IDC_BUTTON1, &CvariantDlg::OnBnClickedButton1)

END_MESSAGE_MAP()

// oao cooe CvariantDlg

BOOL CvariantDlg::OnInitDialog()

{

CDialog::OnInitDialog();

// oaee ya '' oae...'' cceoe e.

// IDM_ABOUTBOX oe eea cceo oa.

ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);

ASSERT(IDM_ABOUTBOX < 0xF000);

CMenu* pSysMenu = GetSystemMenu(FALSE);

if (pSysMenu != NULL)

{

CString strAboutMenu;

strAboutMenu.LoadString(IDS_ABOUTBOX);

if (!strAboutMenu.IsEmpty())

{

pSysMenu->AppendMenu(MF_SEPARATOR);

pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);

}

}

// aae ao oo aoooo oa. ea eae o aoaec,

// ec aoe oo oe e ec aoo

SetIcon(m_hIcon, TRUE); // y ao

SetIcon(m_hIcon, FALSE); // e ao

// TODO: oae ooey aa

return TRUE; // oa ae TRUE, ec oyc e eea eey yae

}

void CvariantDlg::OnSysCommand(UINT nID, LPARAM lParam)

{

if ((nID & 0xFFF0) == IDM_ABOUTBOX)

{

CAboutDlg dlgAbout;

dlgAbout.DoModal();

}

else

{

CDialog::OnSysCommand(nID, lParam);

}

}

// oae o cea aoooe oo yo ocooac ee e oo,

// o acoa ao. oe MFC, coy oe oyeo ecae,

// o aoaec oec aoe ceo.

void CvariantDlg::OnPaint()

{

if (IsIconic())

{

CPaintDC dc(this); // oec ycoca coa

SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0);

// aae aa o ey ecoo oyoa

int cxIcon = GetSystemMetrics(SM_CXICON);

int cyIcon = GetSystemMetrics(SM_CYICON);

CRect rect;

GetClientRect(&rect);

int x = (rect.Width() - cxIcon + 1) / 2;

int y = (rect.Height() - cyIcon + 1) / 2;

// Hacye ao

dc.DrawIcon(x, y, m_hIcon);

}

else

{

CDialog::OnPaint();

}

}

// cea ae y y oye ooae ycoa eeee

// ceyoo oa.

HCURSOR CvariantDlg::OnQueryDragIcon()

{

return static_cast<HCURSOR>(m_hIcon);

}

void CvariantDlg::OnBnClickedButton1()

{

// TODO: oae co o oaoa yeoe

vopros1 kk; \\ oee oea

rezult=0;

if (kk.DoModal()==IDOK)\\oee o ʻ

{

if (kk.otvet1_1==3)\\coee eeeo oea

{

rezult+=5;\\coee ao a oe

UpdateData(false);

}

if (kk.otvet1_2==3)

{

rezult+=5;

UpdateData(false);

}

}

vopros2 kk2;

if (kk2.DoModal()==IDOK)

{

if (kk2.otvet2_1==1)

{

rezult+=5;

UpdateData(false);

}

if (kk2.otvet2_2==2)

{

rezult+=5;

UpdateData(false);

}

}

vopros3 kk3;

if (kk3.DoModal()==IDOK)

{

if (kk3.vvod3_1==4)

{

rezult+=5;

UpdateData(false);

}

if (kk3.vvod3_2==8)

{

rezult+=5;

UpdateData(false);

}

}

vopros4 kk4;

if (kk4.DoModal()==IDOK)

{

if (kk4.vvod4_1==1)

{

rezult+=5;

UpdateData(false);

}

if (kk4.vvod4_2==9)

{

rezult+=5;

UpdateData(false);

}

}

vopros5 kk5;

if (kk5.DoModal()==IDOK)

{

if (kk5.vvod5_1==2)

{

rezult+=5;

UpdateData(false);

}

if (kk5.vvod5_2==8)

{

rezult+=5;

UpdateData(false);

}

}

vopros6 kk6;

if (kk6.DoModal()==IDOK)

{

if (kk6.vvod6_1==5)

{

rezult+=5;

UpdateData(false);

}

if (kk6.vvod6_2==7)

{

rezult+=5;

UpdateData(false);

}

}

vopros7 kk7;

if (kk7.DoModal()==IDOK)

{

if (kk7.vvod7_1==4)

{

rezult+=5;

UpdateData(false);

}

if (kk7.vvod7_2==8)

{

rezult+=5;

UpdateData(false);

}

}

vopros8 kk8;

if (kk8.DoModal()==IDOK)

{

if (kk8.vvod8_1==4)

{

rezult+=5;

UpdateData(false);

}

if (kk8.vvod8_2==4)

{

rezult+=5;

UpdateData(false);

}

}

vopros9 kk9;

if (kk9.DoModal()==IDOK)

{

if (kk9.vvod9_1==9)

{

rezult+=5;

UpdateData(false);

}

if (kk9.vvod9_2==3)

{

rezult+=5;

UpdateData(false);

}

}

vopros10 kk10;

if (kk10.DoModal()==IDOK)

{

if (kk10.vvod10_1==2)

{

rezult+=5;

UpdateData(false);

}

if (kk10.vvod10_2==7)

{

rezult+=5;

UpdateData(false);

}

Allbest.ru


  • popa a e Microsoft Visual Studio 2008 c cooae oe MFC poep a o apeeco popecc, ce poooo ea popecc o epo paoae, c n epx eo popecc.

    [479,9 K], 22.06.2011

  • eopeece oco papao Windows-poe c cooae oe MFC. oae AFX. cooe. Coae poe c oo Visual C++. Ocae popaoo poa, peoa execo oecee.

    [733,5 K], 29.06.2011

  • OpenGL: coe oooc, aoa c aa, oe, ceee, ea aeao, oae ea aa. aaoa oe aa eeo ce occe ae co.

    [698,3 K], 25.06.2011

  • , " " a e C++ Micrsft Visual Studio ae e MFC. Windows-.

    [954,4 K], 25.06.2011

  • Windows Forms Microsoft Visual Studio 2008. "" , , .

    [2,2 M], 28.06.2011

  • - . Visual Studio.NET. Microsoft Visual Studio 2010. C# , -. . .

    [2,1 M], 11.09.2014

  • Microsoft Visual Studio 2008, C++. . . . .

    [585,5 K], 24.03.2009

  • Microsoft Visual Studio, , . Microsoft Visual C++ 2008.

    [2,5 M], 22.06.2011

  • Microsoft Visual C++ Microsoft Developer Studio 6.0. . Visual C++. . "Sort". .

    [46,0 K], 27.11.2007

  • Windows- MFC. Windows. Microsoft Visual C++. , .

    [1,3 M], 12.12.2011

, , ..
PPT, PPTX PDF- .
.