... VT_ERROR;
Teach Yourself Database Programming with Visual C++ 6 in 21 days Day 5-Adding, Modifying, and Deleting Data
http://www.pbs.mcp.com/ebooks/ 067 23 135 02/ ch05/ch05.htm (6 of 10) [9 /22 /1999 ... Database Programming with Visual C++ 6 in 21 days Day 6- Harnessing the Power of Relational Database Servers
http://www.pbs.mcp.com/ebooks/ 067...
... normal
forms.
Teach Yourself Database Programming with Visual C++ 6 in 21 days Day 7 -Database Design
http://www.pbs.mcp.com/ebooks/ 067 231 3502/ch07/ch07.htm (5 of 13) [9/22/1999 1: 43: 33 AM]
Simpo ... ProductsPurchased
Teach Yourself Database Programming with Visual C++ 6 in 21 days Day 7 -Database Design
http://www.pbs.mcp.com/ebooks/ 067 23...
... relational
database.
Teach Yourself Database Programming with Visual C++ 6 in 21 days 13-Melding Object-Oriented Programming with Relational Databases
http://www.pbs.mcp.com/ebooks/ 067 231 350 2/ch13/ch13.htm ... everything. SQL code
Teach Yourself Database Programming with Visual C++ 6 in 21 days 13-Melding Object-Oriented Programming wit...
... 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 ... WM_PAINT mes-
sage on the second dialog class, adding the code in Listing 8 .6 to the function created in
your class.
LISTING 8 .6. THE OnPaint FUNCTION.
1: void CPaintDlg::OnPaint...
...
4: #include “stdafx.h”
5: #include “Serialize.h”
6:
continues
017 31240-9 CH13 4/27/00 12 :52 PM Page 3 05
Database Access and ODBC
Most business applications work with data. They maintain, manipulate, ... a pointer to the current document
4: CSerializeDoc* pDoc = GetDocument();
5: if (pDoc)
6: {
7: // Display the current record position in the set
8: m_sPosition.Format(“Record %d of...
... 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: ... NewDrawing function in the drawing class, increasing the modulus
value in line 7 of the function, as in Listing 16. 15. This will increase the number of pos-
sible squiggles...
... 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...
... base class initialization. Last but not
least is the main() definition. The main() method is defined in Allauto.cpp in Listing
A. 18.
LISTING A. 18. Allauto.cpp.
1: // Workspace name: Inherit2
2: ... 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 PM Page...
... 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...