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

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

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

proxy objects, 880–881

 

 

 

regions, 323, 325

proxy/stub pairs, 588–589

 

 

 

registering

PS_DASH style, 46

 

 

 

 

components, COM, 585–586

PS_DASHDOT style, 46

 

 

 

 

ProcessOrder component, 804–805

PS_DASHDOTDOT style, 46

 

 

 

Registers window, 294

PS_DOT style, 46

 

 

 

RegSvcs.exe utility, 804–805

PS_NULL style, 46

 

 

 

RegularExpressionValidator validation control, 530,

PS_SOLID style, 46

 

 

 

 

535–536

public keys, 763–764

 

 

 

relational database system (RDBMS), defined, 160

push button dialog box control, 80

 

 

 

Release method, IUnknown interface, 575–576

 

 

 

 

Release project build configuration, 272

Q

 

 

 

Remote Data Objects (RDO), 448–449

 

 

 

Remote Data Services (RDS), 449

QueryInterface method, IUnknown interface, 575, 576

 

Y

remote objects

Queued Components, 594

 

 

 

L

 

 

 

 

configuring, 876–877

 

 

 

 

Fdefined, 874–875

R

 

 

M

example application, 891–898

 

 

hosting, 875–876

radio button dialog box control, 80

 

 

lifetime, 885–886

raising events, 337, 342

 

A passing, 877–879

RangeValidator validation control, 530, 534–535

 

remote procedure calls (RPCs), 581, 689

.rc files, 72

 

E

remoting. See also case study (remoting, implementing)

T

 

 

 

 

architecture, 874, 875

RCW (runtime callable wrapper), 769, 771–775

 

 

 

RDBMS (relational database system), defined, 160

 

 

channel services

RDO (Remote Data Objects), 448–449

 

 

 

described, 882–883

RDS (Remote Data Services), 449

 

 

 

 

rules of, 881

Read method, XmlReader class, 818

 

 

 

security, 883

ReadAttributeValue method, XmlReader class, 819

 

configuration (.cfg) files, 884–885

Receive method, UdpClient class, 845

 

 

 

defined, 872

Record Field eXchange (RFX) mechanism

 

 

interprocess communication, 873–874

DDX mechanism versus, 171

 

 

 

 

metadata, 884

described, 166–167

 

 

 

 

objects, proxy, 880–881

functions, table of, 167

 

 

 

 

objects, remote

RecordCount() function, 168

 

 

 

 

configuring, 876–877

records

 

 

 

 

defined, 874–875

adding, 169

 

 

 

 

hosting, 875–876

deactivating, 242–243

 

 

 

 

lifetime, 885–886

defined, 160

 

 

 

 

passing, 877–879

deleting, 169–170

 

 

 

Removable Storage Manager (RSM), 929–930

modifying, 170

 

 

 

Remove() method, 456

unoperational, 242–243

 

 

 

Requery function, 169

recordsets, types, 163

 

 

 

request handlers, ATL Server, 642–644

rectangles, drawing, 42–44

 

 

 

request streams, 642

reference parameters variables, Visual C# .NET, 982

 

RequiredFieldValidator validation control, 530, 532,

reference types, CTS, 7, 310

 

 

 

 

539

 

 

 

 

 

reflection, 603–606

requirements analysis phase, project life cycle, 176–177

 

Team-Fly®

resource editor, 72 resource script file, 72 resource.h file, 72

resources, availability checking and locking, 152 response streams, 642

Resume method, Thread class, 852 reverse caching, ISA Server 2000, 949–950 RFX (Record Field eXchange) mechanism

DDX mechanism versus, 171 described, 166–167 functions, table of, 167

Robocopy, 931 role-based security, 593

root directory default, IIS application, 520–522 routing messages, 130

rows

defined, 160

maximum, DataTable object, 457 RPCs (remote procedure calls), 581, 689

RSM (Removable Storage Manager), 929–930 Run function, CWinApp class, 25

Run function, CWinThread class, 140

runtime callable wrapper (RCW), 769, 771–775

RUNTIME_CLASS macro, 112

S

sample projects. See case study satellite assemblies, 766

Save method, XmlDocument class, 820 scheduled caching, ISA Server 2000, 949 Schema Object Model (SOM), 688 Schemas, XML, 460, 685–688

SCM (Service Control Manager), 588 scope, variables, 982–983

SDI (Single Document Interface) applications described, 113

menu creation, 76 sealed classes, 308 security

channel services, remoting, 883 code access security (CAS), 12

design goals, .NET Framework, 936–937 HTTP security, 694–695

Internet, 693–694 intranet, 694–696

Index 1021

IP security (IPSec), 694 role-based, 593

Select method, XPathNavigator class, 823 SelectCommand property, DataAdapter objects, 462 selection statements, 988

semantic errors, 269–270 semaphores, defined, 150

Send method, UdpClient class, 845 serialization, 105, 690

Serialize function, 105–107

SerializeRaw function, 107

Server Explorer component, Visual Studio .NET IDE, 13 Server Response Files (SRFs), 640–642

servers

ATL Server components, 639–642 described, 639 features, 644–646 maps, 642–643

request handlers, 642–644 client-server, 561–562 COM servers, 568–570 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

fat, 562

in-process servers, 568–569 local servers, 570

Microsoft Transaction Server (MTS), 570 objects, server-activated, 885 out-of-process servers, 569–570

remote servers, 570

System Management Server (SMS), 930 Web server controls, ASP.NET

adding, at run time, 525 adding, using code, 525 adding, using Toolbox, 524–525

1022 Index

servers (continued) 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

Service Control Manager (SCM), 588 serviced components, .NET, 797

SGML (Standard Generalized Markup Language), 16 shared assemblies

converting from private assemblies, 766–767 described, 11, 756–757, 762

shared names, generating, 764–765 SharePoint Portal Server 2001, 952–953

ShowWindow member function, CWinApp class, 111 side-by-side feature, assemblies, 11

signing assemblies, 767

Simple Object Access Protocol (SOAP), 688–691 simple statements, 988

simpleType elements, XML schemas, 685 single call objects, 876

single document application type, 52

Single Document Interface (SDI) applications described, 113

menu creation, 76

single image cluster management, 930 singlecast delegates, 340

single-file assemblies, 761–762 single-threaded apartments (STAs), 589–590 single-threaded applications

creating, 141–143 defined, 135

single-tier applications, 560–561 Singleton call objects, 876

Size property, Button class, 357 Size property, Form class, 356 Size property, Label class, 358 Size property, TextBox class, 357 Sleep method, Thread class, 851

SMS (System Management Server), 930 snapshot recordset type, defined, 163

SOAP (Simple Object Access Protocol), 688–691 SOAPSUDS utility, 884

Socket class, 843–844

socket programming. See case study (network-based applications, creating)

sockets, 841–842

solution build configurations, 271–272 solution containers, 273

Solution Explorer component, Visual Studio .NET IDE, 13

Solution Explorer window, 657, 733 SOM (Schema Object Model), 688 source code. See example code

.sql files, 72

SQL Query Analyzer, 184–185 SQL Server 2000, 953–955

SQL Server Enterprise Manager, 188 SQL Server .NET data provider, 465–467 SqlCommand class methods, table, 466 SqlConnection class methods, table, 466 SqlDataAdapter class methods, table, 467 SqlDataReader class methods, table, 466 SRFs (Server Response Files), 640–642

Standard Generalized Markup Language (SGML), 16 Start method, Thread class, 851

Start Page component, Visual Studio .NET IDE, 13 starting, MFC Application Wizard, 50–51

STAs (single-threaded apartments), 589–590 statements, Visual C# .NET, 987–990

static assemblies, 11, 755

static text dialog box control, 80 static variables, Visual C# .NET, 981

StatusBar class, 366 Stdafx.cpp file, 702 Stdafx.h file, 702

StreamWriter class, 829

String class, 986–987

strings, Visual C# .NET, 986–987 strong names, 762

structures, CRuntimeClass, 112 styles, 46

Styles.css file, 515 surrogate processes, 570

Suspend method, Thread class, 852 switch statements, 988–989 synchronization access objects, defined, 152 synchronization objects, defined, 148 synchronizing threads, 148–152

syntax errors, 269

System Management Server (SMS), 930 System namespace, 10, 958–959

System Preparation (SysPrep) tool, 931 system requirements, ASP.NET, 511

System.Array class, System namespace, 10 System.Console class, System namespace, 10 System.Convert class, System namespace, 10

System.Data namespace, 452–453

System.Data.OleDb namespace, 453 System.Data.SqlClient namespace, 453

System.dll file, 305

System.Drawing namespace, 326–328 System.Math class, System namespace, 10 System.Net namespace, 843

System.Net.Socket namespace, 843 System.String class, System namespace, 10 System.Threading namespace, 850 System.Windows.Forms namespace, 959–961

System.Xml namespace, 680, 816

System.Xml.dll DLL, 816

System.Xml.Xpath namespace, 816

System.Xml.Xsl namespace, 683–684, 831–832

T

_T macro, 166

TabIndex property, Button class, 357 TabIndex property, Label class, 358 TabIndex property, TextBox class, 357

TabIndex property, WebControl class, 528

tables

class tables, 588 creating, 728–729

database tables, creating, 798–799 defined, 160

virtual function table (vtable), 574–575 Target property, Delegate class, 340

Target property, MulticastDelegate class, 341 Task List window, 13–14, 278–280

TcpClient method, UdpClient class, 846–847 TCP/IP (Transmission Control/Internet Protocol),

841–842

terminating threads, 146–147 Text property, Button class, 357 Text property, Form class, 356 Text property, Label class, 358 Text property, TextBox class, 357 text streams, 829

Index 1023

TextBox class, 357 This window, 293 Thread class, 850–851

thread(s), 138–140. See also processes, defined

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

apartment threading model, 589–590 defined, 134

multithreaded applications, creating, 143–146 multithreaded applications, defined, 135–136 neutral apartment-threading model, 593 priority values, 138

single-threaded applications, creating, 141–143 single-threaded applications, defined, 135 synchronizing

CCriticalSection class, 150

CEvent class, 151–152

CMultiLock class, 152

CMutex class, 149–150

CSemaphore class, 150–151

CSingleLock class, 152

CSyncObject class, 148–149 defined, 148

terminating, normal, 146–147 terminating, premature, 147 user-interface threads, 136–137 worker threads, 137

Threads window, 294

ThreadState property, Thread class, 851 three-tier applications, 563

time slicing, 136 TlbImp.exe utility, 773 ToolBar class, 368–369

ToolBarButton class, 367–368

ToolbarHandler function, 370–371 toolbars

Breakpoints window, 287–288 creating, 366–369

Toolbox component, Visual Studio .NET IDE, 13 tools. See also utilities

assembly conversion tools, 757 GUIDGEN tool, 578–579

Hierarchical Storage Management (HSM), 930 HTTP Monitoring (HTTPMon) tool, 931 IntelliMirror, 929

1024 Index

tools (continued)

Microsoft Web Capacity Analysis (WCAT) tool, 931 Network Load Balancing (NLB), 930

Performance Monitor (PerfMon), 931 Removable Storage Manager (RSM), 929–930 Robocopy, 931

single image cluster management, 930 System Management Server (SMS), 930 System Preparation (SysPrep) tool, 931 Visual Studio Analyzer, 931

Windows Installer Service, 929

Windows Management Instrumentation (WMI), 929 ToolTip property, WebControl class, 528

ToString method, EventArgs class, 339

ToString method, UdpClient class, 846

TRACE macro, 268

tracing, root directory default, IIS application, 520 transaction services, COM+, 798

transactional components, 595 transactions, atomic, 795 transferring data

adding events mechanism, 66–67 DDV mechanism, 65

DDX mechanism, 64 transformations to regions, 323

Transmission Control/Internet Protocol (TCP/IP), 841–842

transparency, fill colors, 323

two-stage construction, GDI objects, 41 two-tier applications, 561–562

type library, 584–585 typed datasets, 460

U

UDA (Universal Data Access) strategy, Microsoft, 446, 447

UDDI (Universal Description, Discovery, and Integration), 692–693

UDP (User Datagram Protocol), 841 UdpClient class, 844–846 unboxing, 985

_unhook keyword, 344–345 Unicode characters, 622 Unified Event Model, 345

Universal Data Access (UDA) strategy, Microsoft, 446, 447

Universal Description, Discovery, and Integration (UDDI), 692–693

Universally Unique Identifiers (UUIDs), 578 Unknwn.h file, 583

Unlock method, 149 unmanaged classes, 306–307 unmanaged code

migrating to managed, 966–974 usage reasons, 303

unoperational records, 242–243 unsigned data types, 8 untyped datasets, 460–461

Update button example code, 227–235 Update function, 169, 170 UpdateAllViews function, 105–107

UpdateCommand property, DataAdapter objects, 462 user acceptance testing phase, project life cycle, 184 User Datagram Protocol (UDP), 841

user services, applications, 563 user-interfaces

forms, 355–360

threads, 136–137, 140–141

user-interfaces, creating. See MFC Application Wizard #using directive, 304

utilities. See also tools assembly linker utility, 757

GacUtil.exe utility, 757, 775 HealthMon utility, 930 RegSvcs.exe utility, 804–805 SOAPSUDS utility, 884 TlbImp.exe utility, 773

UUIDs (Universally Unique Identifiers), 578

V

ValidateForm method, 499–501 validation controls

CompareValidator validation control, 530, 532–534 CustomValidator validation control, 530, 536–537 RangeValidator validation control, 530, 534–535

RegularExpressionValidator validation control, 530, 535–536

RequiredFieldValidator validation control, 530, 532, 539

ValidationSummary validation control, 530, 537–538 ValidationSummary validation control, 530, 537–538 value parameters variables, Visual C# .NET, 982

Value property, XmlReader class, 818 value types, CTS, 7, 310

variable(s)

creating, form controls, 61–63 data type casting, 983–985 data types, 981

declaring, 979–980 modifiers, 980 scope, 982–983 types, 981–982

vector images, 321

versioning, assemblies, 759–760

view class component, Document/View architecture, 101–102

viewing, application data, 108 virtual directories, creating, 521–522

Virtual Directory Creation Wizard, 630–631 virtual function table (vtable), 574–575 Visible property, WebControl class, 528 Visual Basic .NET, 15

Visual C++, role, 302. See also Visual C++ .NET Visual C++ ATL Server Project Wizard, 731–733 Visual C# .NET

arrays, 985–986 class modifiers, 979 classes, 978–979

as enhancement, Visual .NET, 14 example code, 990–991

history, 976–977

other languages versus, 977–978 statements

foreach statement, 989–990 method call statements, 988 switch statements, 988–989 types supported, 987

strings, 986–987 variable(s)

data type casting, 983–985 data types, 981

declaring, 979–980 modifiers, 980 scope, 982

types, 981–982

Index 1025

Visual C++ .NET. See also Visual C++, role as enhancement to Visual C++ 6.0, 15 features, enhanced and new, 17–18

visual editing, 564

Visual Studio Analyzer, 931 Visual Studio .NET

advantages, 13 build configurations

project build configurations, 272–273 solution build configurations, 271–272

enhancements, 14–15 features, new, 18 IDE, 13–14

languages supported, 12 vtable, 574–575

v-table binding, 577

W

W3C (World Wide Consortium), 675 Watch window, 291–292

WCAT (Microsoft Web Capacity Analysis tool), 931 Web application DLL, 640

Web Application Wizard, 515 Web Application Wizard files, 515 Web Forms, 515

Web Forms, ASP.NET components, 513–514 creating

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

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

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

testing, 519–520

welcome message application, 519 described, 16

features, 513

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

1026 Index

Web server controls (continued)

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

Web Service Description Language (WSDL), 691, 884 Web services. See also XML

architecture, overview, 673–674 defined, 16, 672–673

security, Internet, 693–694 security, intranet, 694–696 SOAP, 688–691

UDDI, 692–693

WSDL, 691, 884

Web sites, .NET Framework SDK, 511 Web.config file, 515

WebForm1.cs file, 548 WebForm2.aspx file, 548

WebRequest class, 848 wide characters, 622

Width property, WebControl class, 528 Win32 Application Wizard, 27, 28 winbase.h header file, 139

windows

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

Class View window, Visual Studio .NET IDE, 14 Command/Immediate window, 293

debugging windows, 294 Disassembly window, 294 frame windows, creating, 24 Locals window, 291 Memory window, 294 Module window, 294

Output window, Visual Studio .NET IDE, 13–14 Properties window, Visual Studio .NET IDE, 14 Registers window, 294

Solution Explorer window, 657, 733 SQL Query Analyzer window, 185 Task List window, 13–14, 278–280 This window, 293

Threads window, 294

Watch window, 291–292 Windows DNA, 590–591 Windows Forms, 16

Windows Installer Service, 929

Windows Management Instrumentation (WMI), 929 Windows messages, 33

Windows programming, DOS versus, 21 WinMain function, SDK, 24

wiring, events, 337

Wizards. See also MFC Application Wizard Add Member Variable Wizard, 62

Add Method Wizard, 620 Add Property Wizard, 619–620

ATL OLE DB Consumer Wizard, 738, 741 ATL Project Wizard, 614

ATL Server Project Wizard, 653–655, 657 ATL Simple Object Wizard, 616–617 Event Handler Wizard, 66, 77–78, 129 MFC Class Wizard, 85, 199

Virtual Directory Creation Wizard, 630–631 Visual C++ ATL Server Project Wizard, 731–733 Web Application Wizard, 515

Win32 Application Wizard, 27, 28 WM_COMMAND message, 33, 34 WM_CREATE message, 33

WMI (Windows Management Instrumentation), 929

WM_LBUTTONDOWN message, 33 WM_MOUSEMOVE message, 33 worker threads, creating, 137–140

World Wide Consortium (W3C), 675 WriteXml method, 829

WriteXmlSchema() method, 461

WSDL (Web Service Description Language), 691, 884

X

XML (Extensible Markup Language). 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

XML Schema Definition (XSD), 675, 685–688 XML support, ADO.NET, 467–468

XmlAttribute class, System.Xml namespace, 680

XmlDataDocument class, System.Xml namespace, 680

XmlDocument class, 820–822

XmlDocument class, System.Xml namespace, 680

XmlDocumentType class, System.Xml namespace, 680 XmlElement class, System.Xml namespace, 680

XmlNode class, System.Xml namespace, 680

XmlReader class, 817

XmlReader class, System.Xml namespace, 680–681

XmlTextReader class, 817

Index 1027

XmlTextReader class, System.Xml namespace, 680 XmlTextWriter class, System.Xml namespace, 680

XmlValidatingReader class, 817

XmlWriter class, 819–820

XmlWriter class, System.Xml namespace, 681–682

XPathDocument class, 823

XPathNavigator class, 822–823

.xsd files, 460

XSD (XML Schema Definition), 675, 685–688

XSLT (Extensible Stylesheet Language Transformations), 683–685

XslTransform class, System.Xml.Xsl namespace, 683–684, 831–832

Y

YourFirstApplication.vsdisco file, 515

Adobe® LiveMotion™

Fast & Easy®

Web Development

0-7615-3254-4 ■ CD Included

$29.99 U.S. ■ $44.95 Can. ■ £21.99 U.K.

ASP 3 Fast & Easy®

Web Development

0-7615-2854-7 ■ CD Included

$24.99 U.S. ■ $37.95 Can. ■ £18.99 U.K.

CGI Fast & Easy®

Web Development

0-7615-2938-1 ■ CD Included

$24.99 U.S. ■ $37.95 Can. ■ £18.99 U.K.

ColdFusion® Fast & Easy®

Web Development

0-7615-3016-9 ■ CD Included

$24.99 U.S. ■ $37.95 Can. ■ £18.99 U.K.

Macromedia®

Director® 8 and Lingo™

Fast & Easy®

Web Development

0-7615-3049-5 ■ CD Included

$24.99 U.S. ■ $37.95 Can. ■ £18.99 U.K.

Premier Press, Inc.

™ www.premierpressbooks.com

®

Less Time. Less Effort. More Development.

Don’t spend your time leafing through lengthy manuals looking for the information you need. Spend it doing what you do best— Web development. Premier Press’s fast & easy ® web development series leads the way with step-by-step instructions and real screen shots to help you grasp concepts and master skills quickly and easily.

Macromedia®

HomeSite™ 4.5 Fast & Easy®

Dreamweaver® 4

Web Development

Fast & Easy®

0-7615-3182-3 ■ CD Included

Web Development

$29.99 U.S. ■ $44.95 Can. ■ £21.99 U.K.

0-7615-3518-7 ■ CD Included

 

$29.99 U.S. ■ $44.95 Can. ■ £21.99 U.K.

Java™ 2 Fast & Easy®

 

Web Development

Macromedia®

0-7615-3056-8 ■ CD Included

Dreamweaver® UltraDev™ 4

$24.99 U.S. ■ $37.95 Can. ■ £18.99 U.K.

Fast & Easy®

 

Web Development

JavaServer Pages™

0-7615-3517-9 ■ CD Included

Fast & Easy®

$29.99 U.S. ■ $44.95 Can. ■ £21.99 U.K.

Web Development

 

0-7615-3428-8 ■ CD Included

Macromedia®

$29.99 U.S. ■ $44.95 Can. ■ £21.99 U.K.

Fireworks® 4 Fast & Easy®

 

Web Development

PHP Fast & Easy®

0-7615-3519-5 ■ CD Included

Web Development

$29.99 U.S. ■ $44.95 Can. ■ £21.99 U.K.

0-7615-3055-x ■ CD Included

 

$24.99 U.S. ■ $37.95 Can. ■ £18.99 U.K.

Macromedia®

 

Flash™ 5 Fast & Easy®

XHTML Fast & Easy®

Web Development

Web Development

0-7615-2930-6 ■ CD Included

0-7615-2785-0 ■ CD Included

$24.99 U.S. ■ $37.95 Can. ■ £18.99 U.K.

$24.99 U.S. ■ $37.95 Can. ■ £18.99 U.K.

Call now to order!

1.800.428.7267