Index_C


C

C++ templates, 511

call stack, exceptions and, 184

calling functions, 53–61

CallingConvention field (DllImportAttribute), 521

Cancel value (DialogResult), 323

CancelButton property (Form), 292

CanResolveEntity property (XmlValidatingReader), 415

CanUndo property (TextBoxBase), 310

Capacity property (ArrayList), 227

capitalization sensitivity, 4

caret (^) (exclusive OR) bitwise operator, 40, 169

case Hello World program (example), 4

case sensitivity, 4

case statements, 75. See also switch statements

casting, 201

in C++, 515–517

operators, 41

catch blocks. See try and catch construct

catching exceptions, 189–198

constructors and, 193–194

custom handling, 191–192

exception class hierarchy, 192–193

nesting and rethrowing, 194–196

CAtlConverterService class, 500

CCWs (COM Callable Wrappers), 560–561

CDATA node type, 409

char data type, 28

Char type, 276

CharacterCasting property (TextBox), 312

CharSet field (DllImportAttribute), 521

CheckAlign property (CheckBox, RadioButton), 304

CheckBox class (System::Windows::Forms), 281, 288, 330

checkbox controls (forms), 304

CheckBoxes property (ListView), 340

CheckBoxes property (TreeView), 332

Checked property (CheckBox, RadioButton), 304

Checked property (menus), 317

CheckedIndices property (ListView), 340

CheckedItems property (ListView), 340

CheckedListBox class (System::Windows::Forms), 281, 330

CheckState property (CheckBox), 304

ChildNodes property (XmlDocument), 425

ChildNodes property (XmlNode), 427, 431

class keyword, 22

class libraries, 8

Class Library, .NET Framework, 269–270

Class member (TypeAttributes), 544

classes, 19. See also inheritance; objects

abstract, 138

accessing base class members, 135–137

adding variables to, 35–36

class-wide members, 101–106

constructors and destructors, 97–101

declaring, 21

header and source files, 90–95

instance members, 101

interfaces, 144–145

managed and unmanaged, 90, 508

overriding member functions, 140–144

sealed, 144

structures vs., 156

Clear method

Graphics class, 361

ListView class, 341

System::Array class, 218

TextBoxBase class, 311

ClearSelected method (ListBox), 307

ClearUndo method (TextBoxBase), 311

Click events (form buttons), 299

ClientSize property (Form), 292

Clipboard class (System::Windows::Forms), 281, 289, 330

Clone method

System::Array class, 218

XmlNode class, 428

XPathNavigator class, 438

CloneNode methods (XmlNode), XmlNode class, 428

Close method

BinaryReader, BinaryWriter classes, 397

Form class, 292

TextReader class, 385

TextWriter class, 381

XmlTextReader class, 408

XmlTextWriter class, 419

CLR (common language runtime), 268, 512

CLS (Common Language Specification), 269

CLSCompliant Attribute class, 532

code, managed, 507–511

code, unmanaged, 507–526

boxing and unboxing, 513–515

pinning, 512

PInvoke to call Win32 API functions, 517–525

code, Web services from, 480–485, 502

code skeleton, Web services (ATL Server), 497

CollapseAll method (TreeView), 333

Collect method (System::GC), 121

collections, 225–231

Collections namespace, 225–226, 277–278

colon (:)

class inheritance, 133

:: (scope resolution) operator, 92, 273

Color class (System::Drawing), 358, 368–369

color in forms, 368–369

ColorDialog class (System::Windows::Forms), 281, 289, 328

ColumnClick event (ListView), 342

Columns property (ListView), 340

ColumnWidth property (ListBox), 306

COM (Component Object Model), 471, 549–561

ActiveX controls with Windows Forms, 557–560

COM Callable Wrappers (CCWs), 560–561

COM Interop facility, 549–554

handling errors, 554–555

late binding, 555–557

.NET components as COM components, 560–561

using objects from .NET code, 550–554

Combine method (System::MulticastDelegate), 254, 255, 259

combo box controls (forms), 305–309

ComboBox class (System::Windows::Forms), 281, 289, 330

ComboBoxStyle enumeration, 308

commands, executing in connected applications, 456–459

CommandText, CommandType properties (OleDbCommand), 456

Comment node type, 409

common dialog boxes, 327–329

common language runtime (CLR), 268, 512

Common Language Specification (CLS), 269

Common namespace (System::Data), 453

Common Type System (CTS), 269

CommonDialog class, 328

ComparePosition method (XPathNavigator), 438

CompareTo method (IComparable), 224

comparison operators. See relational operators

Compile method (XPathNavigator), 438

compiling source files, 8

complement (~) operator, 40

Component class (System::Windows::Forms::Form), 294

Component Object Model. See COM

comprehensibility of object-oriented programming, 19

condition statements. See decision statements; loop statements

ConditionalAttribute class (System::Diagnostics), 532

Configuration namespace (System::Web::Services), 475

connected applications, creating with ADO.NET, 454–459

ConnectionString property (OleDbConnection), 455

const keyword, 33

constants, 33

const_cast operator, 41, 516

constructor functions, 97–99

exceptions with, 193–194

for structures, 157

ContainsKey, ContainsValue functions, 230

context menus in forms, 317

Context property (WebService), 476

continue statements, 83–84

Control class (System::Windows::Forms), 281, 294

controls on forms, 300–313

buttons, 303–304

checkboxes and radio buttons, 304–305

dialog boxes, 319–329

common, 327–329

data with, 324–327

directory browsing, 335–339, 343–347

event handling, 298–300

labels, 301–303

list boxes and combo boxes, 305–309

ListView control, 340–343

placing, 297–298

status bars, 353–355

tab ordering, 327

text boxes, 310–313

toolbars, 348–352

converting between data types, 31

Copy method

File class, 389

System::Array class, 218, 221

TextBoxBase class, 311

copying array elements, 221

copying structures, 160

CopyTo method (FileInfo), 390

CopyTo method (System::Array), 218

Count property (ArrayList), 227

cout statements, 5

Create member (FileMode), 384

Create methods

DirectoryInfo, File classes, 389

FileInfo class, 390

XmlDocument class, 425

CreateDirectory method (Directory), 388

CreateNavigator method (XmlNode), 428

CreateNew member (FileMode), 384

CreateSubdirectory method (DirectoryInfo), 389

CreateText method (File, FileInfo), 389–390

creating objects. See instantiating objects

CreationTime property (DirectoryInfo), 388

CTS (Common Type System), 269

Current property (IEnumerator), 224

Cursor class (System::Windows::Forms), 281, 289, 330

custom attributes, 536–541

accessing, 545–547

reflection, 542–547

custom exceptions, 198–200

Cut method (TextBoxBase), 311




Microsoft Visual C++  .NET(c) Step by Step
Microsoft Visual C++ .NET(c) Step by Step
ISBN: 735615675
EAN: N/A
Year: 2003
Pages: 208

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net