Teach Yourself Visual C++ 6 in 21 Days phần 7 pps
... as in line 7 of Listing 20.4. LISTING 20.4. THE CMySocket INCLUDES. 1: // MySocket.cpp: implementation file 2: // 3: 4: #include “stdafx.h” 5: #include “Sock.h” 6: #include “MySocket.h” 7: #include ... this thread 5: CSpinner* lpSpin = (CSpinner*)pParam; 6: // Get a pointer to the continuation flag 7: BOOL* pbContinue = lpSpin->GetContinue(); 8: 9: // Loop while the continue flag...
Ngày tải lên: 13/08/2014, 18:20
... IDC_APPSTARTING • IDC_HELP 66 Day 3 005 31240-9 CH03 4/ 27/ 00 11:08 AM Page 66 To implement this additional functionality, perform the following steps: 1. Edit the OnInitDialog function, updating ... struc- ture that contains numerous attributes of the File Open dialog, including the initial directory. This structure is defined as the OPENFILENAME structure in Listing 5 .6. LISTING 5 ....
Ngày tải lên: 13/08/2014, 18:20
... m_wndColorBar.EnableDocking(CBRS_ALIGN_ANY); 62 : 63 : /////////////////////// 64 : // MY CODE ENDS HERE 65 : /////////////////////// 66 : 67 : EnableDocking(CBRS_ALIGN_ANY); 68 : DockControlBar(&m_wndToolBar); 69 : 70 : /////////////////////// 71 : ... as shown in Listing 12.4. Once you add these two lines, save the file, exit Notepad, and restart Visual C++, reloading th...
Ngày tải lên: 13/08/2014, 18:20
Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 7 ppsx
... SECTION Teach Yourself Database Programming with Visual C++ 6 in 21 days Day 17- Accessing a Data Source with OLE DB http://www.pbs.mcp.com/ebooks/ 0 67 2313502/ch 17/ ch 17. htm ( 17 of 25) [9/22/1999 1: 46: 02 ... later in Listing 16. 2. Line 11 in Listing 16. 1 calls SQLAllocEnv to instruct the ODBC driver manager to allocate variables for Teach Yourself Database...
Ngày tải lên: 13/08/2014, 08:21
Teach Yourself Visual C++ 6 in 21 Days phần 1 pptx
... 9 60 4 Quiz 60 4 Exercise 60 4 Day 10 60 5 Quiz 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 ... Exceptions 67 2 Using OLE Exceptions 67 3 Using the Not Supported Exception 67 4 Using the User Exception 67 4 Generating Your Own Custom Exception Cla...
Ngày tải lên: 13/08/2014, 18:20
Teach Yourself Visual C++ 6 in 21 Days phần 3 doc
... do this, add the two lines starting at line 21 in Listing 8.8 to the OnPaint function. LISTING 8.8. THE MODIFIED OnPaint FUNCTION. 1: void CPaintDlg::OnPaint() 2: { 3: CPaintDC dc(this); // device ... Wk2 4/ 27/ 00 11:53 AM Page 148 Adding Flash—Incorporating Graphics, Drawing, and Bitmaps 169 8 LISTING 8 .7. THE DrawRegion FUNCTION. 1: void CPaintDlg::DrawRegion(CPaintDC *pdc, int iC...
Ngày tải lên: 13/08/2014, 18:20
Teach Yourself Visual C++ 6 in 21 Days phần 5 doc
... designing the main form in your sample application, lay out the main form as shown in Figure 14 .7, and configure the controls with the properties specified in Table 14 .6. continues TABLE 14 .6. CONTROL ... 4: #include “stdafx.h” 5: #include “Serialize.h” 6: continues 0 17 31240-9 CH13 4/ 27/ 00 12:52 PM Page 305 Database Access and ODBC Most business applications work with data....
Ngày tải lên: 13/08/2014, 18:20
Teach Yourself Visual C++ 6 in 21 Days phần 6 ppsx
... be used in the drawing, as in line 41 of Listing 16. 16. LISTING 16. 16. THE MODIFIED CModArt NewLine FUNCTION. 1: void CModArt::NewLine() 2: { 3: int lNumLines; 4: int lCurLine; 5: // int nCurColor; 6: ... Get the number of lines in the object array 6: int liCount = poaLines.GetSize(); 7: int liPos; continues 023 31240-9 CH 17 4/ 27/ 00 12: 57 PM Page 421 LISTING 17. 4. CONTINU...
Ngày tải lên: 13/08/2014, 18:20
Teach Yourself Visual C++ 6 in 21 Days phần 8 ppt
... App A 4/ 27/ 00 1: 06 PM Page 551 C++ Review 575 A LISTING A. 17. Car.cpp. 1: // Workspace name: Inherit2 2: // Program name: Car.cpp 3: 4: #include “car.h” 5: 6: void car::initialize(int in_ mpg, ... point 43: rdc.MoveTo(m_iPrevX, m_iPrevY); 44: rdc.LineTo(point.x, point.y); 45: 46: // Save the current point as the previous point 5 86 Appendix B 030 31240-9 APP B 4/ 27/ 00 1: 07...
Ngày tải lên: 13/08/2014, 18:20
Teach Yourself Visual C++ 6 in 21 Days phần 9 pot
... you’d definitely find this technique useful in speeding up the printing. 65 6 Appendix C USING COORDINATES FROM OnBeginPrinting() You might be tempted to also store the coordinates from OnBeginPrinting(). ... CPrintItView::OnPreparePrinting(CPrintInfo* pInfo) { // default preparation return DoPreparePrinting(pInfo); } By default, the DoPreparePrinting() function is called and passed the pI...
Ngày tải lên: 13/08/2014, 18:20