![]() |
#1 |
![]()
MFC Visual C++ :
1. , MFC , : #include <afxwin.h> #include <iostream.h> int main( int argc, char* argv[] ) { if ( !AfxWinInit( ::GetModuleHandle( NULL ), NULL, ::GetCommandLine( ), 0 ) ) { cerr << _T( "MFC Failed to initialize.\n" ); return 1; } // return 0; } , , : - Build / Rebuild all ( ), Build / Set active config ![]() MFC , , - "MFC Failed to initialize." , "afxwin.h" . 2. Windows Application Windows Application MFC ( ): 1. Visual C++. 2. File / New. 3. "Projects" / "MFC AppWizard( exe )", ( Project name ) ( Location ) "OK". . 4. MFC AppWizard - Step 1. ( , - , ) "Next>" ( "Dialog based"). 5. MFC AppWizard - Step 2. "Next>". 6. MFC AppWizard - Step 3. "Finish". 7. New Project Information. "OK". , , MFC. |
|
![]() |
![]() |