did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780782125580

Visual Basic Developer's Guide to Com and Com+

by ;
  • ISBN13:

    9780782125580

  • ISBN10:

    0782125581

  • Edition: 4th
  • Format: Paperback
  • Copyright: 1999-10-01
  • Publisher: John Wiley & Sons Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $39.99

Summary

Freeze offers coverage of the new COM standard, COM+, which will be an integral part of Windows 2000. He includes full coverage of working with MTS (Microsoft Transaction Server) and MSMQ (Microsoft Message Queue), both underpublished topics.

Table of Contents

Forewordp. xxii
Introductionp. xxiii
Understanding COMp. 1
Introducing COMp. 3
What Is COM?p. 4
What Is a Component?p. 4
What Is an Object?p. 6
What Is the Component Object Model?p. 7
Why Is COM Important to You?p. 8
From DDE to COM+p. 9
DDEp. 9
OLE 1p. 10
Basic Becomes Visualp. 11
VBXp. 12
OLE 2 and COMp. 14
ActiveXp. 15
COM and DCOMp. 16
Transactions and Queuesp. 17
COM+p. 19
Final Thoughtsp. 20
Understanding Windows Architecturep. 23
Types of Program Filesp. 24
COM Filesp. 24
EXE Filesp. 25
DLL Filesp. 25
Other Types of Filesp. 26
Program Executionp. 26
Locating and Loading the Programp. 26
Locating and Loading Runtime Librariesp. 27
Resolving Conflictsp. 28
Initializing Filesp. 28
Ending the Programp. 28
Virtual Memoryp. 29
Using Virtual Memoryp. 29
Allocating Memoryp. 32
Program Execution Controlp. 34
Processes and Threadsp. 35
Multithreadingp. 35
Marshalingp. 36
Final Thoughtsp. 37
Running COM Objectsp. 39
The Life of an Objectp. 40
Creating an Objectp. 40
Using an Objectp. 41
Deleting an Objectp. 42
What's Inside a COM Object?p. 44
Interfacesp. 45
Using Standard Interfacesp. 45
Using Custom Interfacesp. 47
Accessing Information through an Interfacep. 48
Binding to an Interfacep. 48
In-Process COM Objectsp. 49
Finding and Loading In-Process COM Objectsp. 49
Understanding In-Process Threading Modelsp. 51
Out-of-Process COM Objectsp. 53
Finding and Loading Out-of-Process COM Objectsp. 54
Understanding Out-of-Process Threading Modelsp. 55
Running Out-of-Process COM Objects Remotelyp. 56
DCOM Objectsp. 57
Finding DCOM Objectsp. 57
Running DCOM Objectsp. 57
COM+ Objectsp. 58
Final Thoughtsp. 58
Building Class Modules in Visual Basicp. 61
Programming with Classp. 62
Elements of the Class Modulep. 63
The Class Namep. 64
Initialization and Termination Routinesp. 64
The Public, Private, and Friend Keywordsp. 64
Module Variablesp. 65
Public versus Private Variablesp. 65
Module Variable Declaration Syntaxp. 66
Property Routinesp. 67
Property Get Syntaxp. 68
Property Let and Property Set Syntaxp. 69
Method Routinesp. 70
Event Declarationsp. 72
Event Declaration Syntaxp. 72
RaiseEvent Syntaxp. 73
A Classy Little Applicationp. 73
Setting Up the Stack Interfacep. 74
Using the Object Browserp. 75
Building the Stack Classp. 77
Using the Stack Classp. 81
Final Thoughtsp. 83
Programming COM with Visual Basicp. 85
Creating ActiveX DLL Objects in Visual Basicp. 87
What Is an ActiveX DLL?p. 88
Why Use an ActiveX DLL?p. 89
Building an ActiveX DLLp. 90
Setting the Project's Propertiesp. 91
Setting Class Module Propertiesp. 97
Creating the TimeInfo Classp. 99
Creating the RunMe Classp. 105
Testing the ActiveX DLLp. 110
Adding Another Projectp. 110
Building the Test Programp. 111
Using the ActiveX DLLp. 115
Compiling the ActiveX DLLp. 115
Registering Your ActiveX DLLp. 116
Adding Your ActiveX DLL to a New Programp. 117
Final Thoughtsp. 118
Creating ActiveX Controlsp. 121
What Makes an ActiveX Control Different?p. 122
ActiveX Control Project Propertiesp. 122
License Keysp. 123
The UserControl Objectp. 124
Containers, Constituents, and Other Stuffp. 125
UserControl Properties, Methods, and Eventsp. 125
Building a Simple ActiveX Controlp. 131
Designing the PicView Controlp. 131
Drawing the PicView Controlp. 133
Coding the PicView Controlp. 134
Adding Information about Your Properties, Methods, and Eventsp. 141
Creating Property Pagesp. 142
Using Standard Property Pagesp. 143
Designing a Property Pagep. 145
Understanding Property Page Properties and Eventsp. 146
Adding an About Boxp. 150
Creating the About Boxp. 150
Hooking the Window to the Controlp. 152
Final Thoughtsp. 153
Creating ActiveX EXE Objectsp. 155
What Makes an ActiveX EXE Different?p. 156
Programming with More Classp. 157
Object Creation and Accessp. 157
Threading Modelsp. 160
An ActiveX EXE Can Have Forms, Toop. 162
Building an ActiveX EXEp. 162
How the EchoClient Program Worksp. 162
The EchoServer Objectp. 164
Missing Object Filesp. 165
The EchoText Methodp. 166
Asynchronous Processingp. 167
Design Overviewp. 167
Starting in the Clientp. 168
Then onto the Serverp. 168
To Start the Taskp. 169
When the Timer Firesp. 169
The AsyncTask Will Runp. 171
And Return via the EchoMessage Eventp. 171
While I Was Waitingp. 172
Designing Multipurpose Programsp. 173
Start Modep. 173
Sub Main and the About Boxp. 174
Sub Main and a Real Applicationp. 175
Finishing Your ActiveX EXE Serverp. 175
Compiling Your Serverp. 176
Installing Your Serverp. 176
Accessing Remote Objectsp. 177
Final Thoughtsp. 178
Moving from COM to DCOMp. 181
How Is DCOM Different?p. 182
DCOM Configurationp. 182
Design Considerations for DCOM Objectsp. 183
Running the DCOM Configuration Utilityp. 184
Setting Windows 2000/NT Optionsp. 184
Setting Windows 95/98 Optionsp. 198
EchoServer and EchoClient Revisitedp. 205
Troubleshooting Common DCOM Errorsp. 208
Error 70: Permission Deniedp. 208
Error 429: ActiveX Component Can't Create Objectp. 209
Error 462: The Remote Server Machine Does Not Exist or Is Unavailablep. 210
Final Thoughtsp. 210
Programming Databases with COM Objectsp. 213
Using Data Sources and Consumersp. 214
Data Sourcesp. 215
Data Consumersp. 215
Building Bound Controlsp. 217
Database Designp. 218
The DataSpinner Controlp. 218
The AddressDisplay Controlp. 224
The AddressBook Programp. 228
Final Thoughtsp. 230
Programming COM+ with Visual Basicp. 233
Introducing COM+p. 235
Transaction Processingp. 236
Atomicityp. 237
Consistencyp. 237
Isolationp. 238
Durabilityp. 238
Message Queuesp. 238
The In-Memory Database Systemp. 239
Other COM+ Featuresp. 240
COM+ and Visual Basicp. 241
COM+ Applicationsp. 242
Transaction Typesp. 243
Transaction Contextp. 244
A Simple COM+ Applicationp. 247
The Database Tablesp. 248
The COM+ Application's Propertiesp. 250
The COM+ Component's Propertiesp. 255
COM+ Object Constructionp. 259
COM+ Component Definitionp. 262
Client Program Constructionp. 267
Final Thoughtsp. 268
Understanding Message Queuesp. 271
Understanding How Message Queues Workp. 272
Synchronous versus Asynchronous Processingp. 272
Result Returnp. 274
Types of Queuesp. 274
Benefits of Message Queuesp. 275
Using Message Queues from Visual Basicp. 277
Public and Private Queuesp. 277
Message Queue Objectsp. 278
Message Queues and COM+ Transactionsp. 288
Building COM+ Message Queuesp. 290
Design Approachp. 290
Request Processingp. 292
Introducing Queued Componentsp. 296
How Queued Components Workp. 296
Limitations of Queued Componentsp. 297
Final Thoughtsp. 297
Understanding the In-Memory Database Systemp. 301
Understanding How IMDB Worksp. 302
Deciding If IMDB Is for Youp. 303
Volume of Datap. 303
Static versus Dynamic Loadingp. 304
The Read-to-Write Ratiop. 304
The Total I/O Ratep. 305
Shared Datap. 305
Preparing to Use IMDBp. 305
IMDB Configurationp. 306
IMDB Security Settingsp. 307
Using IMDB in an Applicationp. 312
Programming Considerationsp. 313
A New Collection Objectp. 314
ContactManager Object Enhancementsp. 316
The User Programp. 320
Final Thoughtsp. 322
Understanding Security in COM+p. 325
Types of Security under COM+p. 326
Authenticationp. 326
Impersonation and Delegationp. 327
Role-Based Securityp. 328
Configuring Securityp. 328
Planning Securityp. 328
Defining Security Rolesp. 330
Adding Users to a Rolep. 332
Associating Roles with Componentsp. 332
Associating Roles with Interfacesp. 333
Enabling Security on an Applicationp. 335
Programming Securityp. 336
Gathering Informationp. 337
Displaying the Informationp. 339
Final Thoughtsp. 340
Developing COM+ Transactionsp. 343
Developing COM+ Transactions for SQL Serverp. 345
Designing the Contact Manager Applicationp. 346
Middle Tier Designp. 346
Client Application Designp. 347
Communicating Using Objectsp. 349
The Contacts Collectionp. 350
The Contact Objectp. 352
The ContactInfos Collectionp. 353
The ContactInfo Objectp. 354
The ActionItems Collectionp. 354
The ActionItem Objectp. 355
Programming the Contact Manager Applicationp. 355
Getting Information about a Contactp. 356
Connecting to the Databasep. 360
Updating the Contact Informationp. 361
Finding a Clientp. 364
Final Thoughtsp. 369
Developing COM+ Transactions for IIS Applicationsp. 373
Moving ContactManager to the Webp. 374
Understanding IIS Applicationsp. 375
How IIS Applications Workp. 375
The IIS Application Object Modelp. 376
Programming the Main Web Pagep. 377
Starting the Applicationp. 378
Displaying the Main Web Pagep. 379
Processing the Main Web Pagep. 384
Programming the Details Web Pagep. 386
Displaying the Details Web Pagep. 387
Processing the Details Web Pagep. 392
Using the Contact Manager Transactionsp. 395
The PutContactInfos Methodp. 396
The PutAContactInfo Methodp. 397
The PutActionItems Methodp. 399
The PutAnActionItem Methodp. 400
Final Thoughtsp. 402
Developing COM+ Transactions for MSMQp. 405
Application Designp. 406
Design Issuesp. 406
Design Conceptp. 407
Programming the Contact Clientp. 407
Keeping Local Informationp. 407
Requesting Datap. 410
Receiving Datap. 414
Updating Datap. 416
Programming the ContactQueue Managerp. 417
Processing a Requestp. 417
Returning a Responsep. 419
Programming ContactTypesp. 420
Using the Request Objectp. 420
Making the ActionItems Object Persistentp. 421
Final Thoughtsp. 426
Glossaryp. 429
Indexp. 441
Table of Contents provided by Syndetics. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program