Teach Yourself Visual C++ 6 in21 Days phần 6 ppsx

Teach Yourself Visual C++ 6 in21 Days phần 6 ppsx

Teach Yourself Visual C++ 6 in21 Days phần 6 ppsx

... AfxMessageBox(“Out of memory”, MB_ICONSTOP | MB_OK); 64 : // Did we create a line object? 65 : if (pLine) 66 : { 67 : // Delete it 68 : delete pLine; 69 : pLine = NULL; 70: } 71: // Delete the exception ... 31240-9 CH 16 4/27/00 12: 56 PM Page 3 86 LISTING 17.7. CONTINUED 36: // nCurColor = rand() % 8; 37: cRed = rand() % 2 56; 38: cBlue = rand() % 2 56; 39: cGreen = rand() % 2 56...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 205
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 9 ppsx

Teach Yourself Visual C++ 6 in21 Days phần 9 ppsx

... // Enable the button if busy 6: pCmdUI->Enable(GetBusy()); 7: } 63 6 Appendix B 030 31240-9 APP B 4/27/00 1:07 PM Page 63 6 Understanding and Exception Handling 66 5 D 17: } 18: catch(CResourceException* ... open the file!”); 16: e->Delete(); 66 4 Appendix D 032 31240-9 APP D 4/27/00 1:08 PM Page 66 4 5. You should see an OnPrint virtual function in the New Virtual Functions list...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 242
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 1 pdf

Teach Yourself Visual C++ 6 in21 Days phần 1 pdf

... Keyboard Events 56 Changing the Drawing Cursor 57 Making the Change Stick 60 Summary 64 Q&A 64 Workshop 65 Quiz 65 Exercises 65 DAY 4WORKING WITH TIMERS 67 Understanding Windows Timers 68 Placing ... Teach Yourself Visual C++ 6 in 21 Days 000 31240-9 FM 4/27/00 11:02 AM Page vi Overview Introduction 1 WEEK 1 AT A GLANCE 5 Day 1 The Visual C++ Development E...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 374
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 2 pot

Teach Yourself Visual C++ 6 in21 Days phần 2 pot

... available resources, as in Figure 6. 1. Click the New button. 6. The Menu Designer opens in the editing area of Developer Studio. The first menu spot is highlighted, as shown in Figure 6. 2. FIGURE 6. 1. The Insert ... IDC_SIZENESW • IDC_SIZEWE • IDC_SIZENS • IDC_NO • IDC_APPSTARTING • IDC_HELP 66 Day 3 005 31240-9 CH03 4/27/00 11:08 AM Page 66 Static Text ID IDC_STATIC Caption Count:...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 301
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 3 docx

Teach Yourself Visual C++ 6 in21 Days phần 3 docx

... break; 55: } 56: // Move down to the next position 57: pStart.y = pStart.y + liDist; 58: pEnd.y = pStart.y; 59: // Draw the line 60 : pdc->MoveTo(pStart); 61 : pdc->LineTo(pEnd); 62 : } 63 : // Select ... 255), // Cyan 6: RGB( 255, 0, 0), // Red 7: RGB( 255, 0, 255), // Magenta 164 Day 8 012 31240-9 CH08 4/27/00 11:54 AM Page 164 Adding Flash—Incorporating Graphics, Drawing, and...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 239
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 4 potx

Teach Yourself Visual C++ 6 in21 Days phần 4 potx

... 63 : /////////////////////// 64 : // MY CODE ENDS HERE 65 : /////////////////////// 66 : 67 : EnableDocking(CBRS_ALIGN_ANY); 68 : DockControlBar(&m_wndToolBar); 69 : 70: /////////////////////// 71: ... m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY); 55: 56: /////////////////////// 57: // MY CODE STARTS HERE 58: /////////////////////// 59: 60 : // Enable docking for the Color Toolba...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 251
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 5 potx

Teach Yourself Visual C++ 6 in21 Days phần 5 potx

... advanced aspects of building applications with Visual C++. Some of these topics you’ll use more than others, but if you do much work with Visual C++, odds are that you’ll work with most, if ... a database. ● How Visual C++ uses the CRecordset class to provide access to an ODBC data source. ● How you can create a simple database application using the Wizards in Visual C++. ● Ho...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 220
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 7 docx

Teach Yourself Visual C++ 6 in21 Days phần 7 docx

... the Visual C++ wizards to build ActiveX controls. ● How to add properties and methods to your controls using the Class Wizard. ● How to test your control using the tools provided with Visual C++. 025 ... 18. 16. LISTING 18. 16. THE CTaskingView OnCbthread1 FUNCTION. 1: void CTaskingView::OnCbthread1() 2: { 3: // TODO: Add your control notification handler code here 4: 5: ///////////...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 302
  • 0
Teach Yourself Visual C++ 6 in21 Days phần 8 potx

Teach Yourself Visual C++ 6 in21 Days phần 8 potx

... GetDlgItem(IDC_RUNPGM)->ShowWindow(FALSE); 61 : GetDlgItem(IDC_STATICPGM)->ShowWindow(FALSE); 62 : } 63 : 64 : /////////////////////// 65 : // MY CODE ENDS HERE 66 : /////////////////////// 67 : } 3. Extend the code ... procedure for writing a C++ program using Visual C++ is simple and easy. Follow these steps: 1. From the main menu, select Visual C++. 2. Select File |...
Ngày tải lên : 13/08/2014, 08:21
  • 80
  • 212
  • 0
Teach Yourself Visual C++ 6 in 21 Days phần 1 pptx

Teach Yourself Visual C++ 6 in 21 Days phần 1 pptx

... 60 5 Exercise 60 6 Day 11 61 2 Quiz 61 2 Exercise 61 2 Day 12 61 4 Quiz 61 4 Exercises 61 5 Day 13 61 6 Quiz 61 6 Exercise 61 7 Day 14 62 0 Quiz 62 0 Exercise 62 1 Day 15 62 3 Quiz 62 3 Exercise 62 4 Day 16 625 Quiz 62 5 Exercises ... the Errors 66 1 Throwing Exceptions 66 6 Deleting Exceptions 66 8 MFC Exception Types 66 8 Using the CException Base Class 66 8 Using t...
Ngày tải lên : 13/08/2014, 18:20
  • 80
  • 284
  • 0
Từ khóa: