Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Microsoft Visual C++ .NET Professional Projects - Premier Press

.pdf
Скачиваний:
180
Добавлен:
24.05.2014
Размер:
26 Мб
Скачать
☆

1000 Index

classes (continued)

 

 

 

 

 

memory management, 8–9

System.Convert class, System namespace, 10

 

CLS (common language specification), 7–8

System.Math class, System namespace, 10

 

 

CMainFrame class, 56

System.String class, System namespace, 10

 

CMemoryException class, 267

TextBox class, 357

 

 

 

 

CMetaFileDC device context class, 40

Thread class, 850–851

 

 

 

 

CMultiLock class, 152

ToolBar class, 368–369

 

 

 

 

CMutex class, 149–150

ToolBarButton class, 367–368

 

 

 

 

CMyFirstApplicationApp class, 57

UdpClient class, 844–846

 

 

 

 

 

Y

 

 

 

 

CMyFirstApplicationDoc class, 57

WebRequest class, 848

 

 

 

 

L

 

 

 

 

CMyFirstApplicationView class, 57–58

XmlAttribute class, System.Xml namespace, 680

CObject class, 23, 117

XmlDataDocument class, System.Xml namespace, 680

CoClass class, 584, 615–618

XmlDocument class, 820–822

 

 

 

 

code access security (CAS), 12

XmlDocument class, System.Xml namespace, 680

M

 

 

Code and Text Editor component, Visual Studio .NET

XmlDocumentType class, System.Xml namespace, 680

 

IDE, 14

XmlElement class, System.Xml namespace, 680

 

code inline model, 514

 

F

 

 

E

code listings. See example code

XmlNode class, System.Xml namespace, 680

 

XmlReader class, 817

 

 

 

 

code-behind file, 514

XmlReader class, System.Xml namespace, 680–681

code-behind model, 514

XmlTextReader class, 817

 

 

A COLORREF method, 46

XmlTextReader class, System.Xml namespace, 680

colors, table of, 46

columns, defined, 160

XmlTextWriter class, System.Xml namespace, 680

 

T

 

COM+

XmlValidatingReader class, 817

 

 

 

 

described, 592–595

XmlWriter class, 819–820

 

 

 

 

 

XmlWriter class, System.Xml namespace, 681–682

 

services, 796–797

XPathDocument class, 823

 

 

 

 

 

transaction services, 798

XPathNavigator class, 822–823

 

 

 

COM callable wrapper (CCW), 769–770

XslTransform class, System.Xml.Xsl namespace,

COM (Component Object Model)

683–684, 831–832

 

 

 

 

 

attributes, 599, 961

Clear() method, 456

 

 

 

 

 

benefits, 567

ClearForm method, 498

 

 

 

 

 

CCW, 769–770

client-activated objects (CAOs), 876–877, 885

 

 

 

clients, 568

clients

 

 

 

 

 

COM+

COM clients, 568

 

 

 

 

 

described, 592–595

fat clients, 562

 

 

 

 

 

services, 796–797

client-server architecture, 561–562

 

 

 

 

 

transaction services, 798

Clipboard feature, 564

 

 

 

 

 

components

CListView derived class, CView class, 109

 

 

 

explained, 567–568

Clone method, Delegate class, 340

 

 

 

 

registering, 585–586

Clone method, MulticastDelegate class, 341

 

 

types, 568–570

Close method, UdpClient class, 846

 

 

 

 

described, 565–566

CLR (Common Language Runtime)

 

 

 

 

history, 563–565

CLS, 7–8

 

 

 

 

 

HRESULT values, 584

CTS, 7

 

 

 

 

 

interfaces

described, 5–6

 

 

 

 

 

altering existing, naming conventions, 572–573

Garbage Collector (GC), 8–9

 

 

 

 

 

defined, 571–572

Team-Fly®

Index 1001

features, 572

Globally Unique Identifiers (GUIDs), 578–581 IClassFactory interface, 578, 587 IDispatch interface, 576–577

implementing, 584

Interface Definition Language (IDL), 581–584 IOleLink interface, 578

IOleObject interface, 578 IStorage interface, 578 IStream interface, 578 IUnknown interface, 575–576 needs addressed, 573 purpose, 574–575

type library, 584–585 versioning, 573–574

interop, 769 interoperability, 768–769

language interoperability, 581–584 library, 570–571

location transparency, 588 objects

calling, from .NET, 772–775 instantiating, 586–589

purpose, 566–567 RCW, 769, 771–775 registry role, 585–586 servers, 568–570 threading, 589–590

Combine method, Delegate class, 340 combo box dialog box control, 80 command messages, 34

Command objects, .NET data providers, 461 Command/Immediate window, 293 Commerce Server 2000, 943

Commit button example code, 258–262 Common Language Runtime (CLR)

common language specification (CLS), 7–8 common type system (CTS), 7

described, 5–6

Garbage Collector (GC), 8–9 memory management, 8–9

common language specification (CLS), 7–8 common runtime environments, 5 common type system (CTS), 7

CompareValidator validation control, 530, 532–534 compilation errors, 145

compiler attributes, 599, 963 compilers. See also compiling

just-in-time ( JIT) compiler, 6 mangling process, 567

compiling. See also compilers

.NET applications, 5–6 on-demand compilation, 6

complexType elements, XML schemas, 686 Component Object Model (COM)

attributes, 599, 961 benefits, 567 CCW, 769–770 clients, 568 COM+

described, 592–595 services, 796–797 transaction services, 798

components explained, 567–568 registering, 585–586 types, 568–570

described, 565–566 history, 563–565 HRESULT values, 584 interfaces

altering existing, naming conventions, 572–573 defined, 571–572

features, 572

Globally Unique Identifiers (GUIDs), 578–581 IClassFactory interface, 578, 587 IDispatch interface, 576–577

implementing, 584

Interface Definition Language (IDL), 581–584 IOleLink interface, 578

IOleObject interface, 578 IStorage interface, 578 IStream interface, 578 IUnknown interface, 575–576 needs addressed, 573 purpose, 574–575

type library, 584–585 versioning, 573–574

interop, 769 interoperability, 768–769

language interoperability, 581–584 library, 570–571

1002 Index

Component Object Model (COM) (continued) location transparency, 588

objects

calling, from .NET, 772–775 instantiating, 586–589

purpose, 566–567 RCW, 769, 771–775 registry role, 585–586 servers, 568–570 threading, 589–590

component technology, 564 components

defined, 564

transactional components, 595 components classes, 960 compound documents, 564 configuration (.cfg) files, 884–885 configured classes, 796 Config.Web file, 548

Connect method, UdpClient class, 847

Connection objects, .NET data providers, 461

Constraint class, 459

ConstraintCollection object, 459 construction phase, project life cycle, 183 constructors, CDatabaseAppSet, 164–165 containers, 273

Contains() method, DataRowCollection class, 456–457

Content Management Server 2001, 944–945

control flows, Documment/View architecture, 128–130 control notification messages, 33

controls

check box dialog box control, 80 combo box dialog box control, 80

control flows, Documment/View architecture, 128–130 control notification messages, 33

dialog boxes, 80

edit box dialog box control, 80 form controls, 59–63

group box dialog box control, 80 list box dialog box control, 80 push button dialog box control, 80 radio button dialog box control, 80

Service Control Manager (SCM), 588 static text dialog box control, 80 validation controls, ASP.NET

CompareValidator validation control, 530, 532–534

CustomValidator validation control, 530, 536–537 multiple, 538–539

process described, 530–531

RangeValidator validation control, 530, 534–535

RegularExpressionValidator validation control, 530, 535–536

RequiredFieldValidator validation control, 530, 532, 539

ValidationSummary validation control, 530, 537–538

Web server controls, ASP.NET adding, at run time, 525 adding, using code, 525 adding, using Toolbox, 524–525 adding, when, 524

event handling, 527–530

HTML server controls versus, 523–524 properties, setting, at design time, 526 properties, setting, at run time, 526–527

Controls property, Form class, 356

Controls property, WebControl class, 527 converting data types, 983–985

CPaintDC device context class, 40 ProjectName.cpp file, 304 Create function, 24

CreateControls method, 484–492

CreateDelegate method, Delegate class, 340 CreateHatchBrush method, CBrush class, 46–48

CreatePen method, CPen class, 45–48

CreateSolidBrush method, CBrush class, 46–48 creating. See also case studies; example code

application framework, MFC Application Wizard, 52–56

applications high-availability, 926–927 MDI, 114–115 multithreaded, 143–146 SDI, 52–56 single-threaded, 141–143

assemblies, 761–762

class libraries, Managed C++, 544–547 CRecordSet-based classes, 209–211 delegates, 374–379

dynamic objects, 112–113 frame windows, 24

GUI example application, Managed Extensions for C++, 310–317

high-availability applications, 926–927 key pairs, 766–767

MDI applications, 114–115 menu resources, 72

menus, 360–365 message handlers, 77–78 modal dialog boxes

dialog box class, creating, example code, 88–90 dialog box class, creating, member variables adding,

86–87

dialog box class, creating, menu option message handler adding, 90–92

dialog box class, creating, message handlers adding, 87–88

dialog box class, creating, MFC Class Wizard steps, 85–86

dialog box class, creating, overview, 84–85 dialog box resource, creating, 83–84 overview, 82–83

modeless dialog boxes

dialog box class, creating, 94–97 dialog box resource, creating, 93 overview, 92

multithreaded applications, 143–146 objects, GDI, 41

pens and brushes, 45–48 projects, Visual C++ .NET, 27–28 regions, GDI+, 325

remote objects, 891–898 remote servers, 898–901

root directory default, 521–522 SDI applications, 52–56

single-threaded applications, 141–143 status bars, 366

threads, user-interface, 140–141 threads, worker, 138–140 toolbars, 366–369

user interface forms, 355–360 virtual directories, 521–522 Web Forms

files created, 515 folders created, 520–521 page design, 516–519

root directory default, IIS application, creating, 521–522

Index 1003

root directory default, IIS application, tracing, 520 steps, 514

testing, 519–520

welcome message application, 519 XML files, empty, 664

CRecordset class

CDatabaseAppSet constructor, 164–165 data members, 164–165

DoFieldExchange() function, 166–167 GetDefaultConnect() function, 165 GetDefaultSQL() function, 166 navigating recordsets, 168

purpose, 162–163 records, adding, 169 records, deleting, 169–170 records, modifying, 170 recordset types, 163

CRecordSet-based class, creating, 209–211 CRecordView class, 169–170

CRequestHandlerT class, 642

CRichEditView derived class, CView class, 109 critical sections, defined, 150

CRuntimeClass structure, 112 Crypto API library, 644

CScrollView derived class, CView class, 109 CSemaphore class, 150–151

CSingleLock class, 152

CSyncObject class, 148–149

CTreeView derived class, CView class, 109 CTS (common type system), 7

culture values, 765–766

CurrentThread property, Thread class, 851

CustomValidator validation control, 530, 536–537

CView class

described, 107

member functions, 107–108 tasks to perform, 108–109

CWinApp class described, 23–24, 110

example code, 111–112

member functions, 25–26, 110–111 in threads, 137

CWindowDC device context class, 40

CWinThread class, 137

CWnd class, 24

1004 Index

D

DAO (Data Access Object), 161, 448 data

restoring, 105 saving, 105 transferring

adding events mechanism, 66–67 DDV mechanism, 65

DDX mechanism, 64 viewing application data, 108

data access and storage layer, .NET Framework, 920 Data Access Object (DAO), 161, 448

data access techniques, evolution, 446–450 data access technologies, choosing, 161

data access technologies, implementing. See case study (database connectivity)

data providers, .NET components, 461–462 objects, interaction, 463 objects exposed, 784

OLE DB .NET data provider, 463–465 purpose, 453

SQL Server .NET data provider, 465–467 data services, applications, 563

data types

converting, 983–985

data type casting, 983–985 unsigned, 8

variables, Visual C# .NET, 981 DataAdapter objects, .NET data providers, 462 database(s)

creating, 184–186, 471, 728–729 graphically designing, 188 IMDB, 593

ISAM, 161 Jet (.mdb), 161 RDBMS, 160

schema, 181–183, 470 tables, creating, 798–799

DataBind method, WebControl class, 528 DataColumn class, 459

DataColumnCollection object, 458

DataReader objects, .NET data providers, 461–462

DataRelation class, 459

DataRelationCollection class, 458

DataRelationCollection object, 458–459

DataRow class, 457, 459

DataRow objects, 457

DataRowCollection class, 457

DataRowCollection object, 457

DataSet class, 454, 459 DataSet objects, 454–459 datasets, ADO.NET

defined, 453–454 features, 450–451 filling, 828

namespaces, data-related, 452–453 typed datasets, 460

untyped datasets, 460–461

DataTable class, 459

DataTable object, 457

DataTableCollection object, 456–457 DCOM (Distributed COM), 570

DDV (Dialog Data Validation) mechanism, 65

DDV_ValType function, 65

DDX (Dialog Data Exchange) mechanism described, 64

implementing, dialog-based applications, 88 RFX mechanism versus, 171

DDX_Control function, 64

DDX_Text function, 64 deactivating records, 242–243

Debug project build configuration, 272 debugging. See also debugging tools

defined, 268

logic errors, 270–271 semantic errors, 269–270 syntax errors, 269

debugging tools. See also debugging Autos window, 289–290 Breakpoints window

Breakpoint dialog box, 281–284 inserting (adding) Breakpoints, 285–289 purpose, 280

toolbar, 287–288 Call Stack window, 293

Command/Immediate window, 293 Disassembly window, 294

Locals window, 291 Memory window, 294 Module window, 294

overview list, 274

QuickWatch dialog box, 292–293 Registers window, 294

Task List

usage, 274–278 window, views, 278–280

This window, 293 Threads window, 294 Watch window, 291–292

debugging windows. See debugging tools

DECLARE_DYNCREATE macro, 112–113

DECLARE_MESSAGE_MAP() macro, 34, 35

DECLARE_SERIAL macro, 117 declaring variables, 979–980 Delegate class, 339–340 delegates

creating, 374–379 defined, 336 multicast, 340 singlecast, 340

Delete function, 169–170

DeleteCommand property, DataAdapter objects, 462 DeleteContents function, 104

deleting records, CRecordset class, 169–170 deployment phase, projects, 175–176

design goals, .NET Framework availability, 923–927 manageability, 927–932 performance, 932–933 reliability, 933–935 scalability, 935–936 security, 936–937

device contexts, 39–40, 42–44, 324 device handling, GDI, 38

device independence concept

device contexts, 39–40, 42–44, 324 explained, 21

dialog box controls, 80

dialog boxes. See also dialog boxes, listed by name controls, 80

modal, creating

dialog box class, creating, example code, 88–90 dialog box class, creating, member variables adding,

86–87

dialog box class, creating, menu option message handler adding, 90–92

Index 1005

dialog box class, creating, message handlers adding, 87–88

dialog box class, creating, MFC Class Wizard steps, 85–86

dialog box class, creating, overview, 84–85 dialog box resource, creating, 83–84 overview, 82–83

modeless, creating

dialog box class, creating, 94–97 dialog box resource, creating, 93 overview, 92

purpose, 80 types, 81–82

dialog boxes, listed by name. See also dialog boxes Add Class dialog box, 616

Add Method dialog box, 620 Add New Item dialog box, 29

Add Reference dialog box, 552, 627

Add Web Reference dialog box, 715, 717, 745 application modal dialog boxes, 81 Breakpoint Condition dialog box, 283 Breakpoint dialog box, 281–284

Breakpoint Hit Count dialog box, 284 Breakpoint Properties dialog box, 289 Configuration Manager dialog box, 272 Create New Data Source dialog box, 189

Create New Data Source to SQL Server dialog box, 190

Data Link Properties dialog box, 739 Debug Assertion dialog box, 286

Design Table dialog box, Enterprise Manager, 781 modeless dialog boxes, 82

New Project dialog box, 27, 193, 473

ODBC Data Source Administrator dialog box, 189 ODBC Microsoft SQL Server Setup dialog box, 191 Print dialog box, 81

Property Pages dialog box, 29, 272–273 QuickWatch dialog box, 292–293

Select Data Source dialog box, Machine Data Source tab, 194

Select Database Object dialog box, 195, 740

SQL Server ODBC Data Source Test dialog box, 192 system modal dialog boxes, 82

Visual C++ New Project dialog box, 613, 701, 714 Visual Studio .NET New Project dialog box, 544

dialog classes, creating, 88–90

1006 Index

Dialog Data Exchange (DDX) mechanism described, 64

implementing, dialog-based applications, 88 RFX mechanism versus, 171

Dialog Data Validation (DDV) mechanism, 65 Dialog Editor, 60

dialog-based applications, 52, 54, 88

DialogResult property, Button class, 357 digital signatures, SOAP, 694

directives, 304 directories

root directory default, IIS application, creating, 521–522

root directory default, IIS application, tracing, 520 virtual directories, creating, 521–522

disassemblers, 294 Disassembly window, 294

displaying menus, coding, 73–77 distributed caching, ISA Server 2000, 948 Distributed COM (DCOM), 570

Distributed Transaction Coordinator (DTC), 798 DLL Hell, 759

DLLs (dynamic link libraries) compatibility, 759 defined, 566

implementation advantages, 568 implementation disadvantages, 569 ISAPI extension DLL, 639

System.Xml.dll DLL, 816 Web application DLL, 640

DNA, Windows, 590–591

document class component, Documment/View architecture, 101

Document Object Model (DOM), 679–682 Document Type Definition (DTD), 676–678 document-centric applications, 100 Documment/View architecture

classes, CDocument

described, 103–104 example code, 106–107 member functions, 104–105 tasks to perform, 104

classes, CFrameWnd, 109–110 classes, CView

described, 107

member functions, 107–108

tasks to perform, 108–109 classes, CWinApp

described, 110 example code, 111–112

member functions, 110–111 components, 101–102

control flows, 128–130

dynamic object creation, 112–113 message routing, 130

purpose, 100–101

DoDataExchange function, view class, 64, 86–87

DoFieldExchange() function, CRecordset class, 166–167

DOM (Document Object Model), 679–682 DOS, Windows programming versus, 21 drawing

colors, table of, 46 ellipses, 45

lines, 44–45 methods, GDI+, 325 rectangles, 42–44

DropMulticastGroup method, UdpClient class, 846 DTC (Distributed Transaction Coordinator), 798 DTD (Document Type Definition), 676–678

dynamic assemblies, 11, 755 dynamic link libraries (DLLs)

compatibility, 759 defined, 566

implementation advantages, 568 implementation disadvantages, 569 ISAPI extension DLL, 639

System.Xml.dll DLL, 816 Web application DLL, 640

dynamic objects, creating, 112–113

DynamicInvoke method, MulticastDelegate class, 341

dynaset recordset type, defined, 163

E

edit box dialog box control, 80 Edit function, 169, 170 elements

XML schemas, 685–686 XSD, listing, 686–688

Ellipse function, CDC class, 45, 47–48

ellipses, drawing, 45

Empty method, EventArgs class, 339 Enabled property, WebControl class, 528

EnableViewState property, WebControl class, 528 encryption algorithms, 763–764

END_MESSAGE_MAP() macro, 35

Enterprise Servers

Application Center 2000, 941

BizTalk Server 2000, 942–943

Commerce Server 2000, 943

Content Management Server 2001, 944–945 Exchange 2000, 945–946

Host Integration Server 2000, 946–947

Internet Security and Acceleration (ISA) Server 2000, 947–950

Mobile Information 2001 Server, 950–952

SharePoint Portal Server 2001, 952–953 SQL Server 2000, 953–955

enumerators, defined, 86

Equals method, Delegate class, 340 Equals method, IPAddress class, 849

Equals method, MulticastDelegate class, 341

Equals method, UdpClient class, 847 erroneous execution function call results, 265 error(s)

compilation errors, 145 logic errors, 270–271 semantic errors, 269–270 syntax errors, 269

Event Handler Wizard, 66, 77–78, 129 _event keyword, 343

EventArgs class, 338–339

EventArgs method, EventArgs class, 339 event-driven programming, 21 EventHandler delegate, 337–338

_event_receiver keyword, 343–344 event(s)

adding, data validation mechanism, 66–67 button events, handling, 68–69

DataBinding event, WebControl class, 528 defined, 151, 336

Event Handler Wizard, 66, 77–78, 129 execution events, flowcharted, 32 handling

managed code, 342–345 managed extensions, 369–374

Index 1007

MFC, 22

Web server controls, 527–530 loosely coupled events (LCEs), 594 overview, 336

raising events, 337, 342 receivers, defined, 336 senders, defined, 336 types, 336–337

Unified Event Model, 345 wiring, defined, 337

_event_source keyword, 343 example code. See also application(s)

CDocument class usage, 106–107

CFrameWnd class implementation, 28, 30

CreateHatchBrush method usage, 47–48 CreatePen method usage, 47–48

CWinApp class

implementation, 28, 30 CWinApp class usage, 111–112

delegates, creating, case study, 374–379 device contexts, example usage, 42–44 dialog classes, creating, 88–90

drawing

rectangles, 42–44

Easy Tool application, complete code listing, 380–439 Ellipse function usage, 47–48

GDI objects, example usage, 42–44 InitInstance function, 111–112

Login forms, Managed C++, creating, 474–480 Luhn algorithm, implementing, 624–627 MenuItemHandler function, case study, 371–374 menus, creating, case study, 362–365

menus, displaying, 75

message maps, implementation, 35–36 Serialize function usage, 106–107

unmanaged code, migrating to managed, 970–974 UpdateAllViews function usage, 106–107

user interface, case study, 358–360 Visual C# .NET usage, 990–991

exception handling

C++ exception handling, 265–266 exceptions, defined, 264

function call results, categories, 265 MFC exception handling

classes, 266–267

1008 Index

exception handling (continued) macros, 268

Exchange 2000, 945–946 Execute Query button, 185

execution phase, projects, 175–176 EXEs, 569–570

ExitInstance function, CWinApp class, 26 ExitInstance function, CWinThread class, 140 explicit data type conversions, 984–985

Extensible Markup Language (XML). See also Web services

ADO.NET support, 467–468 DOM, 679–682

DTD, 676–678 files

creating empty, 664 well-formed, 829

namespaces, 679 purpose, 675–676 Schemas, 460, 685–688 SOM, 688 specifications, 676

supported in Visual Studio .NET, 16, 688 XSD, 675, 685–688

XSLT, 683–685

Extensible Stylesheet Language Transformations (XSLT), 683–685

F

fall-through condition, 988 fat clients, 562

fat servers, 562

FetchData method, 492–493 fields, defined, 160

files

afxmt.h header file, 149 ASP.NET, 547–548 ASPX file, 514, 548 AssemblyInfo.cpp file, 702 AssemblyInfo.cs file, 515 code-behind file, 514

configuration (.cfg) files, 884–885 Config.Web file, 548 ProjectName.cpp file, 304 Global.asax file, 515, 548, 702

Global.asax.h file, 702 guidgen.exe file, 578 Licenses.lics file, 515 metafiles, defined, 39

portable executable (PE) files, 6 ProdService.asmx file, 702 ProdService.cpp file, 702 ProdService.h file, 702 ProdService.vsdisco file, 702 Project.vsdisco file, 548

.rc files, 72

resource script file, 72 resource.h file, 72

Server Response Files (SRFs), 640–642

.sql files, 72 Stdafx.cpp file, 702 Stdafx.h file, 702 Styles.css file, 515 System.dll file, 305 Unknwn.h file, 583

Web Application Wizard files, 515 Web Forms, 515

Web.config file, 515 WebForm1.cs file, 548 WebForm2.aspx file, 548 winbase.h header file, 139 XML, creating empty, 664 XML files, well-formed, 829

.xsd files, 460 YourFirstApplication.vsdisco file, 515

FileStream class, 829

FillFields method, 493–494 filling datasets, 828

filling methods, GDI+, 325

Finalize method, EventArgs class, 339

Find() method, 457 firewalls, 694

Font property, WebControl class, 528 foreach statement, 989–990

ForeColor property, WebControl class, 528

Form class, 356 form controls, 59–63

formats, images, GDI+ supported, 323 formatters, 883

forward caching, ISA Server 2000, 948 fragment caching, 510

frame window class component, Documment/View architecture, 102

frame windows, creating, 24 free threading model, 590

function call results, categories, 265

functions, listed by name. See also methods, listed by name

AddDocTemplate member function, CWinApp class, 111

AddNew function, 169

AfxBeginThread function, CWinThread class user-interface threads, creating, 140–141 worker threads, creating, 138–140

Create function, 24

DDV_ValType function, 65

DDX_Control function, 64

DDX_Text function, 64

Delete function, 169–170

DeleteContents function, 104

DoDataExchange function, view class, 64, 86–87

DoFieldExchange() function, CRecordset class, 166–167

Edit function, 169, 170

Ellipse function, CDC class, 45, 47–48

ExitInstance function, CWinApp class, 26 ExitInstance function, CWinThread class, 140

GetDefaultConnect() function, CRecordset class, 165

GetDefaultSQL() function, CRecordset class, 166

GetDocument member function, CView class, 107–108 InitInstance function, CWinApp class, 25, 110–112

InitInstance function, CWinThread class, 140

IsBOF function, 168

IsEOF function, 168

IsLoading function, CArchive class, 105

IsLocked member function, CMultiLock and CSingleLock classes, 152

IsModified function, CDocument class, 104–105 IsStoring function, CArchive class, 105 LineTo function, CDC class, 44–45

LoadFrame member function, 24 MenuItemHandler function, 371–374 Move function, 168

MoveFirst function, 168 MoveLast function, 168 MoveNext function, 168 MovePrev function, 168

Index 1009

MoveTo function, CDC class, 44–45 OnActivateView member function, CView class, 108 OnCreate member function, CFrameWnd class,

109–110

OnDraw member function, CView class, 108 OnFileNew member function, CWinApp class, 111 OnFileOpen member function, CWinApp class, 111 OnIdle function, CWinThread class, 140 OnInitialUpdate member function, CView class, 108

OnNewDocument function, CDocument class, 104

OnUpdate function, CView class, 105

ParseCommandLine member function, CWinApp class, 111

PreCreateWindow member function, CFrameWnd class, 110

ProcessShellCommand member function, CWinApp class, 111

RecordCount() function, 168

Requery function, 169

Run function, CWinApp class, 25

Run function, CWinThread class, 140

Serialize function, 105–107

SerializeRaw function, 107

ShowWindow member function, CWinApp class, 111 ToolbarHandler function, 370–371

Update function, 169, 170 UpdateAllViews function, 105–107 WinMain function, SDK, 24

G

GAC (global assembly cache), 11, 757–758 GacUtil.exe utility, 757, 775

Garbage Collector (GC), 8–9 garbage-collected classes, 306 GC (Garbage Collector), 8–9 _gc keyword, 306

GDI+. See also Graphical Device Interface (GDI)

Brush class

methods, table of, 333–334 purpose, 333

device contexts, 324 drawing methods, 325 features, new, 321–323 filling methods, 325