Home > Store

.NET Architecture and Programming Using Visual C++

Register your product to gain access to bonus material or receive a coupon.

.NET Architecture and Programming Using Visual C++

Book

  • This product currently is not for sale.
Not for Sale

Description

  • Copyright 2002
  • Dimensions: K
  • Pages: 704
  • Edition: 1st
  • Book
  • ISBN-10: 0-13-065207-5
  • ISBN-13: 978-0-13-065207-2

Leverage your Visual C++ skills in advanced .NET development.

  • Leverage your Visual C++ skills to build advanced .NET applications and Web services
  • Covers managed code, COM/Win32 interoperability, Windows Forms, ADO.NET, ASP.NET, SOAP, XML, security, and more
  • Running case study: build a complete system using Visual C++ and .NET

Now, experienced Visual C++ developers can leverage their existing skills to create state-of-the-art .NET applications! .NET Architecture and Programming Using Visual C++ introduces the .NET Framework and programming model from the perspective of the Visual C++ developer, then presents breakthrough techniques for building Windows(r) and Web systems with maximum power and performance. Through extensive examples and a book-length case study, it helps you master every facet of Visual C++ .NET development—from data access to debugging, managed code to COM/Win32 interoperability.

  • Managed C++ programming: interfaces, delegates, events, and .NET Framework interactions
  • User interface programming with Visual C++ .NET and the new Windows Forms classes
  • Assemblies and other tools for building simpler, more robust Windows applications
  • .NET metadata, serialization, threading, attributes, asynchronous programming, remoting, and memory management
  • ADO.NET: Accessing both relational and XML-based data
  • Building Web applications and services with Visual C++ .NET, ASP.NET, and SOAP
  • Securing .NET applications: Code Access Security, declarative security, and more
  • In-depth coverage of interoperability with legacy Windows applications

Part of The Integrated .NET Series from Object Innovations and Prentice Hall PTR.

Sample Content

Online Sample Chapter

Overview of .NET Framework Classes

Table of Contents

(NOTE: Each Chapter ends with Summary.

Preface.


Acknowledgements.


About this Series.


1. What Is Microsoft .NET?

Microsoft and the Web. Windows on the Desktop. A New Programming Platform. The Role of XML.



2. .NET Fundamentals.

Problems of Windows Development. Applications of the future. .NET Overview.



3. Managed C++ Programming.

How C++ Fits into the .NET World. Enabling C++ Managed Extensions. First Managed C++ .NET Programs. Mapping C++ to the CLS and the .NET Framework. C++ Programming for the .NET Platform. Exception Handling. C++ Attributes.



4. Object-Oriented Programming in Managed C++.

Review of Object-Oriented Concepts. Acme Travel Agency Case Study: Design. Inheritance in Managed C++. Inheritance Fundamentals. Acme Travel Agency Case Study: Implementation.



5. Managed C++ in the .NET Framework.

System: Object. Collections. ArrayList Example. Interfaces. Generic Interfaces in .NET. Delegates. Events.



6. User Interface Programming.

Windows Forms Hierarchy. Simple Forms Using .NET SDK. Windows Forms Event Handling. Menus. Controls. Visual Studio.NET and Forms. Dialog Boxes. ListBox Control. Acme Travel Agency Case Study - Step 3.



7. Assemblies and Deployment.

Assemblies. Private Assembly Deployment. Shared Assembly Deployment. Assembly Configuration. Multi-module Assemblies. Deploying the Case Study. Setup and Deployment Projects.



8. .NET Framework Classes.

Metadata and Reflection. Input and Output in .NET. Serialization. .NET Application Model. Context. Application Isolation. Asynchronous Programming. Remoting. Custom Attributes. Garbage Collection.



9. Programming with ADO.NET.

Data Providers. The Visual Studio.NET Server Explorer. Getting Connected. Data Readers. Parameters Collection. SqlDataAdapter and the DataSet Class. DataSet Collections. Dataset Fundamentals. Database Transactions and Updates. Working with Datasets. Acme Travel Agency Case Study. XML Data Access. AirlineBrokers Database.



10. ASP.NET and Web Forms.

What Is ASP.NET? Web Forms Architecture. Request/Response Programming. Case Study. ASP.NET Applications. State in ASP.NET Applications. ASP.NET Configuration. More About ASP.NET.



11. Web Services.

Protocols. Web Service Architecture. SOAP Formatting Differences. WebService Class. Using the Managed C++ Web Service Template. The Arithmetic Web Service. Hotel Broker Web Service.



12. ATL Server Web Sites and Web Services.

History of Dynamic Web Content Technologies. ATL Server Applications. ATL Server Application Architecture. Creating an ATL Server Project. Creating an ATL Server Web Service Project.



13. Security.

User-Based Security. Code Access Security. Internet Security. Role-Based Security in .NET. Code Access Permissions. Code Identity. Security Policy.



14. Tracing and Debugging in .NET.

The TraceDemo Example. Deploying TraceDemo.exe.config. Using the Debug and Trace Classes. Using Switches to Enable Diagnostics. Enabling or Disabling Switches. TraceListener. Listeners Collection.



15. Mixing Managed and Unmanaged Code.

Comparing Managed and Unmanaged Code. Managed and Unmanaged Reference and Value Types. Restrictions on Using Managed Types in C++. Calling Across the Managed/Unmanaged Boundary. Comparing C++ Programming in COM and .NET. Accessing COM Components from Managed Code. Accessing Managed Components from COM Clients. Platform Invocation Services (PInvoke).



Appendix A. Visual Studio.NET.

Overview of Visual Studio.NET. Creating a Console Application. Project Configurations. Debugging. Summary.



Index.

Preface

PREFACE

For several years, Microsoft Visual C++ has been used as the ultimate power tool for Windows software development. Although it requires a substantial investment in acquiring the necessary skills, Visual C++ allows you to do certain things that are just not possible in other programming languages. Now that the .NET world is upon us, it is exciting to know that you can continue to apply Microsoft Visual C++, along with its new managed C++ extensions, to new development efforts to achieve the highest possible power and performance. Managed C++ can be used to develop .NET assemblies and to create amazing new desktop programs, web applications, and web services. Unmanaged C++ can also be used to build ATL Server based Web sites and services.

.NET represents a sea change for Microsoft Windows software development. .NET also represents a significant learning challenge for Microsoft Windows programmers. The new platform includes new C++ language extensions as well as an enormous class library, the .NET Framework.

This book is practical, with many examples and a case study that is used as a realistic demonstration that continues through many of the chapters. The goal is to equip you to begin building significant applications using Visual C++ and the .NET Framework. The book is part of The Integrated .NET Series from Object Innovations and Prentice Hall PTR.

Organization

The book is organized into five major parts and is structured to make it easy for you to navigate to what you need to learn. The first part, chapters 1 and 2, provides an overview that should be read by everyone. It answers the big question, What is Microsoft .NET?, and outlines the programming model of the .NET Framework.

The second part, chapters 3 to 5, covers programming with managed C++. Even if you are familiar with traditional C++, you will want to read these chapters. Chapter 4 introduces the C++ managed extensions. The case study, which is elaborated throughout the entire book, is introduced in Chapter 4. Chapter 5 covers the important topics of interfaces, delegates, and events. This chapter also describes important interactions between managed C++ and the .NET Framework.

The third part, chapters 6 to 9, covers important fundamental topics in the .NET Framework. Chapter 6 covers user interface programming using the Windows Forms classes. Chapter 7 discusses assemblies and deployment, which constitute a major advance in the simplicity and robustness of deploying Windows applications, ending the notorious situation known as "DLL hell." Chapter 8 introduces important .NET Framework classes, including the topics of metadata, serialization, threading, attributes, asynchronous programming, remoting, and memory management. Chapter 9 covers ADO.NET, which provides a consistent set of classes for accessing both relational and XML data.

The fourth part of the book provides an in-depth introduction to Web programming using ASP.NET and SOAP. Chapter 10 introduces the fundamentals of ASP.NET, including the use of Web Forms, for development of Web sites. Chapter 11 covers SOAP and Web Services, which provide an easy-to-use and robust mechanism for heterogeneous systems to interoperate. Chapter 12 shows how to program with the ATL Sever template library to create both Web servers and Web Services.

The final part of the book covers additional important topics in the .NET Framework. Chapter 13 covers the topic of security in detail, including code access security and declarative security. Chapter 14 introduces the debug and trace classes provided by .NET. Chapter 15 covers interoperability of .NET with legacy COM and with Win32 applications.

Sample Programs

The only way to really learn a major framework is to read and write many programs, including some of reasonable size. This book provides many small programs that illustrate pertinent features of .NET in isolation, which makes them easy to understand. The programs are clearly labeled in the text, and they can all be found in the software distribution that accompanies this book.

A major case study, the Acme Travel Agency, is progressively developed in most of the chapters 4 through 12. It illustrates many features of managed C++ and .NET working in combination, as they would in a practical application.

The sample programs are provided in a self-extracting file on the book's Web site. When expanded, a directory structure is created, whose default root is c:\OI\NetCpp. The sample programs, which begin with the second chapter, are in directories Chap02, Chap03, and so on. All the samples for a given chapter are in individual folders within the chapter directories. The names of the folders are clearly identified in the text. An icon in the margin alerts you to a code example. Each chapter that contains a step of the case study has a folder called CaseStudy, containing that step. If necessary, there is a readme.txt file in each chapter directory to explain any instructions necessary for getting the examples to work.

This book is part of The Integrated .NET Series. The sample programs for other books in the series are located in their own directories underneath \OI, so all the .NET examples from all books in the series will be located in a common area as you install them.

These programs are furnished solely for instructional purposes and should not be embedded in any software product. The software (including instructions for use) is provided "as is" without warranty of any kind.

Caveat

The book and the associated code were developed with Beta 2 of the .NET Framework. Microsoft has indicated that this version of .NET is close to what will be the final version. Nonetheless, changes will be made before .NET is released. The code in the examples has been verified to work with Windows 2000. Database code has been verified with SQL Server 2000. Several examples in the database and security chapters have machine names embedded in connection strings or role names. When trying to run these examples, you will have to replace those names with the appropriate name for your machine. To make installation easy, the database examples run with user name "sa" and without a password. Needless to say, in a real system you should never have any login id without a password or have a database application use sa to log into a database.

Websites

The web site for the book series is

www.objectinnovations.com/dotnet.htm

A link is provided at that Web site for downloading the sample programs for this book. Additional information about .NET technology is available at

www.mantasoft.com/dotnet.htm

The book sample programs are available at this Web site as well.

The Web site for the book will also have a list of .NET learning resources that will be kept up to date.

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020