![]() |
#1 |
![]()
1. .
, C++ Visual C++. , , Windows - (, C) . . - OLE - . C++ . Windows , . , , OLE . Windows . . - , OLE, , . , , , . , . Microsoft Visual C++ MFC AppWizard. , , . MFC AppWizard , , , - . OLE, , . , MFC AppWizard . . , MFC AppWizard, , . - . , MFC AppWizard, . . , MFC AppWizard MFC (Microsoft Foundation Class library). C++ MFC, . Windows- MFC () , ++ Windows. MFC Windows-, , Windows , Windows-. Windows Windows . Windows . , API (Application Programming Interfase). Windows API, , , , .. MFC API. , -. , - API, . (DLL) API , , , Windows, . . API (Dynamic Link Libraries, DLL), , , .. . , . . -, API-, DLL- , , . -, Windows- DLL-. . Win16 Win32 API. Win16 16- , Windows 3.1. , 32- , Win32 Windows 95 Windows NT. Win32 Win16 (.. ), . , , . Win32 32- , Win16 16- . , , 32- 32- . 32- . , Windows. Win32 32- , , (intergers) 32-. , int unsignerd 32 , 16, Windows 3.1. 16 , short. ( , typedef-.) , 16- , 32 , , 32 , . 32- , near far. . Windows 95 Windows NT near far ( #define). GDI API GDI (Graphics Device Interfase ). GDI Windows, - . GDI Windows- . Windows , Windows . Windows 3.1 . , Windows 95 Windows NT, : . . , . . , , , . . . . , Windows 95 Windows NT . , Windows 95 Windows NT , . , . , , , . . Windows 3.1 Windows 95/NT. Windows 3.1 . , , , . , . Windows 95 Windows NT . . . . , . Windows . , DOS . , - Windows- . . Windows : . : Windows. , . . Windows . , . , . , . : . Windows- : , . Windows Windows- , . . , , MFC ; . , , Windows-, MFC, , . WinMain() Windows- WinMain(). . MFC , - . Windows- , , . , . Windows, . . . Windows, , , . , . Windows, , . , , Windows. , , Windows , . Windows- . MFC . . , , . API-, Windows. Windows, MFC, . , Windows , . Windows ( WinMain()). Windows, . Windows- . MFC . , . Windows. , Windows-. , MFC , . , Windows- , . ( ++. , , .) , . Windows, . . . MFC . , . . Windows Windows- . : -, Windows, ; -, , Windows- (.. Windows-). Windows , , . Windows . , Windows-, . , , . , , , . , , Windows- . Windows Windows-, . , . , , . , , , Windows-. Windows-, . . , Windows, . Windows Windows- ( MFC ) ++, int char*. , (header) . HANDLE, HWND, BYTE, WORD, DWORD, UNIT, LONG, BOOL, LPSTR LPCSTR. HANDLE 32- , . , , HANDLE, . , . , HWND 32- . , MFC, , . BYTE 8- , WORD 16- , DWORD , UNIT - 32- . LONG long. BOOL , , . LPSTR , LPCSTR (const) . MFC , MFC () , ++ Windows. , 200 . Windows- - . , MFC , Windows. MFC , . , Windows , . , 75 . . , MFC, , . MFC . , Windows-, . ( - ). , , , , . , MFC, Windows ( , ). MFC (API) Windows. Windows API, . API . , API ! MFC ( ) API , . MFC , ++, , MFC, ++. . , . , MFC, ++, . . , , Windows. , , , , . , Windows-, - Windows-. Microsoft Developer Studio Microsoft (Microsoft Developer Studio) - , , Visual C++, - Visual J++. Visual C++. C ++, , Windows- MFC AppWizard (Application Wizard - ) MFC (Microsoft Foundation Class Library). MFC-. Windows- , , MFC. MFC MFC , . MFC- theApp, , CWinApp. , Document-View (-). , - , CDocument ( ""). - , CView ( " ") . CFrameWnd ("-") - . , , . - , CDialog. CView, CFrameWnd, CDialog CWnd (""), Windows-. CObject (""). MFC-, , , , , . Windows- , WinMain. , MFC, . theApp, WinMain, . - theApp - . theApp WinMain. WinMain theApp: InitInstance Run. , WinMain theApp InitInstance, InitInstance. InitInstance, theApp . . , , MFC - , , , . . , theApp, - Run - Run. : " , ". theApp . , . Windows-. . Windows- Dispatch. , . theApp , , , . . - . Visual C++ (, OnDraw). , . , , , - , . - - . , MFC, . . . , , , MFC. , MFC CWinApp, CFrameWnd, CDocument, CView .. . . , , , . , . , . : , , , , ; ; . , MFC, - "", , . , MFC, - framework - . , . , , , , . , , , , . , - . , - . , , , , , . , , . 1, , Visual C++, 1 , 1 . 1 , , 1 , . , , . Visual C++ - , , , , . - , , , , . , , . - MFC OWL. . , Visual C++. - . , . - , , .. "" , . Visual C++ . . Microsoft , Visual C++. , MFC AppWizard (exe) Windows- , MFC. , - ClassWizard ( ), . ClassWizard , . , , . ClassWizard. , . Microsoft Developer Studio , . MFC AppWisard, ClassWizard . MFC AppWizard . . , , , . . , . . . , , toolbar .. ClassWizard . , , .., ClassWizard. Visual C++ . . Microsoft , Visual C++. , ( ) Microsoft Visual C++: MFC AppWizard (exe) Windows- , . . , , , . . MFC AppWizard (dll) DLL, MFC. DLL. AppWizard ATL COM ActiveX , ActiveX (ActiveX Template Library - ATL). (DLL) (exe-). Custom AppWizard AppWizard. MFC DLL, . DevStudio Add-in Wizard Visual Studio. DLL Visual Studio. MFC ActiveX ControlWizard - , ActiveX, MFC. Win32 Application Window-. , . Win32 Console Application . , c DOS Windows (). , . Win32 Dynamic-Link Library . DLL. . Win32 Static Library , () . . . , , - , , . , Windows- , , , , . , , MFC, . , . , MFC, - Document-View. , Visual C++. , . , , , , () . MFC , CDocument CView. . , . , . Microsoft . - - AppWizard. , . , MFC , AppWizard . AppWizard , , . , . , , . . (, , ) , AppWizard ClassWizard. - - . , - ClassWizard ( ). ClassWizard ClassWizard . . . ClassWizard , . , CCmdTarget CRecordset. ClassWizard . , . , CCmdTarget, Windows , , , . CCmdTarget (Message Map) - , Windows . . . , ClassWizard. ClassWizard . . ClassWizard . , Windows , , . ClassWizard , . ClassWizard . . ClassWizard , , , . ClassWizard , . " " " " (Dialog Data Exchange and Dialog Data Validation - DDX/DDV). , (Record Field Exchange - RFX). DDX/DDV RFX . . , DDV . DDX . , , , DDX . , MFC MFC , , .. , MFC- , . MFC C. MFC . C. . , , , m_. , , , . MFC , , . Afx, AfxGetApp. AFX Application FrameworkX, , . AFX MFC. , . AFX , (, , ) MFC. MFC AppWizard ClassWizard, : //{{AFX_ ... //}}AFX_ , MFC AppWizard ClassWizard. . ClassWizard. //{{AFX_: 11111.jpg MFC AppWizard ClassWizard . , . . , , MFC AppWizard ClassWizard, : //TODO: Visual C++, C++, . - Visual C++. , , HDD, Visual C++ 6. 5 4. , . , Visual C++, Windows, . Visual C++ C++, DOS. , , . |
|
![]() |
![]() |
![]() |
: 1 (: 0 , : 1) | |
|
|