Home > Store > Programming > .NET and Windows Programming

Sams Teach Yourself Visual C++.NET in 24 Hours

  • By Richard J. Simon, Mark Schmidt
  • Published Apr 9, 2002 by Sams. Part of the Sams Teach Yourself series.
    • Copyright 2002
    • Dimensions: 7-3/8" x 9-1/8"
    • Pages: 413
    • Edition: 1st
    • Book
    • ISBN-10: 0-672-32323-0
    • ISBN-13: 978-0-672-32323-2
    • eBook
    • ISBN-10: 0-7686-6065-3
    • ISBN-13: 978-0-7686-6065-4

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

  • Description
  • Downloads
  • Sample Content

This book is for developers who want to develop .NET applications using Visual C++ 7.0 as the programming language. It covers the new features of Visual C++ which support .NET while lightly covering the new MFC and ATL enhancements as they relate to the .NET architecture, but focuses heavily on developing for the .NET framework. The book takes the reader through a simple .NET application, a more advanced application, and Internet development in .NET. The reader is also shown the differences between managed and unmanaged Visual C++ code and how to integrate them--critical information for migrating legacy C++ applications to the .NET architecture.

Downloads

The source code for the examples developed in the book - 412 kb -- code.zip

Online Sample Chapters

Creating Web Services with Visual C++.NET

Database Access with Visual C++.NET

Visual C++.NET Control Class Libraries

Visual C++.NET's ATL Server

Writing a Simple C++ .NET Program

Table of Contents

(NOTE: Each chapter concludes with a Summary, Q&A, and Workshop.)

Introduction.

Audience and Organization. Conventions Used in This Book. Get Started!

I. GETTING STARTED WITH VISUAL C++ .NET.

Hour 1. Using Visual C++ .NET.

Getting Familiar with the New IDE. Application Types with Visual C++ .NET. Working with Solutions and Projects. Compiling and Debugging.

Hour 2. Special Features of Visual C++ .NET.

Using the New Language Keywords. Creating User-Defined Attributes. Pragmas, Compiler, and Linker Features.

Hour 3. Writing a Simple C++ .NET Program.

Building an MFC Application. Building a Managed .NET Framework Application. Comparing the Differences.

II. UNDERSTANDING .NET.

Hour 4. Understanding the Basics of .NET.

Understanding the .NET Framework Namespaces. Commonly Used .NET Classes. Deploying .NET Applications. What Is the Common Language Runtime?

Hour 5. Understanding Managed Versus Unmanaged Code.

The Relationship Between Managed and Unmanaged Code. Using Managed Code for Easy Memory Management. Migrating Unmanaged Legacy Code.

Hour 6. Integrating with Other .NET Languages.

Integrating .NET Component Assemblies. Building the Project.

III. IMPLEMENTING A USER INTERFACE.

Hour 7. Working with Windows Forms.

Creating a Simple Windows Form. Creating the Windows Form. Building an MDI Interface with Windows Forms.

Hour 8. Working with Resources.

The .NET Managed Resource File. Creating the .NET Resource File. Integrating the Resource File. Reading Resources at Runtime.

Hour 9. Programming with Graphics.

Understanding GDI+. Building a Simple GDI+ Application.

Hour 10. Printing with .NET.

Modifying the Toolbar and Menu. Working with the PrintDocument Object.

IV. SERVER DEVELOPMENT.

Hour 11. Creating Web Services.

Overview of Web Services and .NET. Creating a Simple Web Service. Using a Web Service Within an Application.

Hour 12. Creating Web Services with ATL.

Creating an ATL Web Service Project. Uncovering the ATL Web Service Implementation. Building a Test Application.

Hour 13. Working with .NET Error Handling and Diagnostics.

Understanding the .NET Error Handling Classes. Understanding the Exception Class. Overview of the Trace and Debug Classes. Creating and Using Custom Exceptions.

Hour 14. ATL Servers.

Why ATL Server? Creating an ATL Server Project. ATL Server Sequence of Events. The Server Response File. Creating the NumberGuess Server Response File. Implementing the Replacement Functions.

V. LANGUAGE FEATURES.

Hour 15. Attributes.

A Step in the Right Direction: Attributes Simplify ATL Development. Attributes and the Build Process. Attribute Programming with ATL. Creating an Attributed ATL Object. Where's the IDL File? Creating the MFC Client to Access Your ATL Object. Examining the Injected Attribute Code.

Hour 16. Collections and Arrays.

.NET Framework Collection Class Design. The Collection Classes.

Hour 17. Interfaces.

Interfaces Explained. Implementing .NET Framework Interfaces. Creating Your Own Interface

Hour 18. Events and Delegates.

The Unified Event Model. Working with Delegates. Creating and Handling Managed Events.

VI. ADVANCED PROGRAMMING.

Hour 19. Threading and Synchronization.

Threading and Synchronization Explained. Creating Threads. Creating the ThreadSynch Project. Thread Synchronization. Creating Consumer and Producer Objects. Events and Timers.

Hour 20. Database Access.

Connected vs. Disconnected Clients. Redesigning ADO for the .NET Framework. Creating the Authors ADO.NET Application. Connecting to the Data Source. Displaying and Navigating Through the Data. Inserting and Deleting Table Records.

Hour 21. COM with .NET.

COM Interop Design. Using COM Objects within .NET. Using .NET Objects Within COM Projects.

Hour 22. Mixing Managed and Unmanaged Code.

Unmanaged and Managed Code Together. Unmanaged Code Can Introduce Memory Leaks. Platform Invocation. Using P/Invoke to Call the MessageBox Function. Using P/Invoke for Custom Data Types. Specifying Specific Data Types for Marshaling.

Hour 23. Control Class Libraries.

Controls Within the .NET Framework. Creating the Custom Control Project. Using Custom Controls in a Managed C++ Application. Strong-Named Assemblies and the Global Assembly Cache. Using Custom Controls with C# .NET. Stock Properties. Creating Custom Control Properties.

Hour 24. Serialization.

Binary and XML Serialization. Creating the ObjectSerialization Class and Windows Form. Serializing with Attributes. Customizing the Serialization Process. Serializing and Deserializing Objects.

Appendix A. Quiz Answers.

Hour 1. Hour 2. Hour 3. Hour 4. Hour 5. Hour 6. Hour 7. Hour 8. Hour 9. Hour 10. Hour 11. Hour 12. Hour 13. Hour 14. Hour 15. Hour 16. Hour 17. Hour 18. Hour 19. Hour 20. Hour 21. Hour 22. Hour 23. Hour 24.

Appendix B. Visual Studio .NET IDE Reference.

Source Window. Reducing Window Clutter. Help System.

Index.

 
Best Value

Book + eBook Bundle  $53.98  $35.39

Book Price: $26.99
eBook Price: $8.40

Add To Cart

This book includes Instant Online Access with Safari and free shipping!

Instant Online Access with Safari Books Online

With your book purchase you are entitled to free, instant online access to that book on Safari Books Online for 45 days. After you've completed your purchase, you will receive instructions on how to log into Safari Books Online. If you do not want to receive online access to the book, simply uncheck the box for Instant Online Access in your cart.

Add To Cart

Book  $29.99  $26.99

Usually ships in 24 hours.

This book includes Instant Online Access with Safari and free shipping!

Instant Online Access with Safari Books Online

With your book purchase you are entitled to free, instant online access to that book on Safari Books Online for 45 days. After you've completed your purchase, you will receive instructions on how to log into Safari Books Online. If you do not want to receive online access to the book, simply uncheck the box for Instant Online Access in your cart.

Add To Cart

eBook  $23.99  $21.59

About this eBook

Requires the free Adobe® Reader® software.

Download after purchase.

Information Before downloading this DRM-encrypted Adobe® Reader® PDF file, be sure to:


  • Install Adobe Reader 6.x, 7.x, or the free Adobe Digital Editions software on your machine. Adobe Reader and Adobe Digital Editions software only works for Macintosh and Windows. The Linux and Unix versions of Adobe Reader do not have the plug-ins required to decrypt the eBook.
  • Activate the DRM through the Adobe Reader software or at Adobe's DRM Activator site.
  • Follow the procedures as specified by Adobe.
  • Visit our eBook FAQ page for more information.
Safari Books Online

What is this?

Online access to books, videos, and tutorials from Addison Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media and others - starting as low as $22.99. Learn more and start a free trial.

Start Reading Online
Informit Network