Tous nos rayons

Déjà client ? Identifiez-vous

Mot de passe oublié ?

Nouveau client ?

CRÉER VOTRE COMPTE
Visual C++ for Visual Basic Programmers
Ajouter à une liste

Librairie Eyrolles - Paris 5e
Indisponible

Visual C++ for Visual Basic Programmers

Visual C++ for Visual Basic Programmers

Bill Locke

420 pages, parution le 09/03/2002

Résumé

The C family of languages is the consummate choice of programmers who want to program without restrictions. Think of anything you want to do in programming, and there is a way to get it done in C, C++, or C#. There are very few language families that can make that claim. This book was written for intermediate to advanced Visual Basic programmers who want these languages on their tool belt.

This book will concentrate on components of and the differences in Visual Basic and C. You will be shown how to write routines and objects that you can use to augment your Visual Basic skills. If you decide to shift to the C family altogether, this is a good way to begin your transition. At the same time, there is enough information in this book to shift to C# completely.

In Visual C++® for Visual Basic® Developers you will

  • Understand the differences between basic C and Basic code, using numerous examples
  • Learn about common programming constructs in C, including decisions and looping
  • Get an introduction to C++ classes and implementation inheritance, concepts critical for programming in C++ or C# technologies
  • Learn about creating components in different technologies, and relevant differences between COM and .NET technologies
  • Explore ActiveX® control development in detail
  • Take a look into C# and build a component with it, demonstrating some of the practical differences between C# and the previous development languages

Contents

Introduction.
1. How Did We Get We Here?

A History of Visual Basic and C++.
16 Bit.
32 Bit.
.NET.

Visual Basic's Contribution.
Strengths of Visual Basic.
Weaknesses of Visual Basic.

C++'s Contribution.
Strengths of C++.
Weaknesses of C++.

C#.

2. C Basics.
Tokens and Elements.
Keywords.
Identifiers.
Constants.
Literals.
Predefined Constants and Macros.

Structure.
Directives.
Code Structure.
Lifetime.
Scope and Visibility.

Functions.
Prototypes.
Definitions.
Invoking Functions.
main, wmain, DllMain.
Function Pointers.

Summary.

3. C Programming.
Variables and Data.
Type Specifiers and Qualifiers.
Variables and Declarators.
Initialization.

Expressions.
Operators and Precedence.
Precedence.
Conversions and Type Casts.

Statements.
Assignment.
Control and Flow.
Looping.

Summary.

4. C++ Basics.
Tokens and Elements.
C++ Keywords.
Identifiers.
Constants and Literals.

Structure.
Directives.
Scope, Visibility, and Lifetime.
Linkage.

Functions.
Prototype.
Variable Number of Parameters.
Overloading.

Variables and Data.
Runtime Type Information.
C++ Definitions and Declarations.
Variables and Declarators.
Namespace.

Expressions.
Operators.
Casting.

Statements.
Error Handling.
C++ Exception Handling.
Structured Exception Handling.

Summary.

5. C++ Classes.
Classes.
OOP Concepts.
Basics of Classes.
Names.
Class Members.
Member Variables.
Member Functions.
Member Access Control.
friend Functions.

Derived Classes.
Basics.
Multiple Base Classes.
Using Declaration.
Abstract Classes.

Summary.

6. C++ and Windows.
How the Windows System Works.
Processes and Threads.
Message Subsystem.

How a Windows Program Works.
Window Class.
Creating a Main Window.
Base Services.
GDI.

Summary.

7. C DLLs.
Tutorial for Creating a Simple C DLL.
Using Visual C++ to Create the DLL.
Exporting the Function from C.
Prototyping the Function.
Writing the Function.
Starting Visual Basic from the C++ Environment.
Declaring and Using a Function from Visual Basic.
Debugging the C++ Code.
Tutorial Summary.

Passing Numeric Variables.
Four-Byte Integers (Longs).
Two-Byte Integers (Integer).
Four-byte Real (Single).
Eight-Byte Real (Double).
Boolean.
Currency.

Using Strings.
Passing C Strings (ByVal).
Handling a BSTR.
Passing Byte Arrays.
Passing and Use Structures (UDTs).

Passing and Using Variants.
Pass and Using Arrays.
Unicode and ANSI 198Conclusion.

8. C DLL Practical Examples.
Type Libraries and DLLs.
Tutorial for Creating a DLL Including Type Library Information.
Some Finer Points of the IDL File.

Adding Resources to a DLL.
Samples of C DLLs.
Subclassing.
Support of InstallShield.
Extended Stored Procedures.
Callbacks, Hooks, and Other Nasty Things.

Summary.

9. Components and Controls.
Basics of Components.
Components and Inheritance.
Inheritance Defined.
Abstraction.
Encapsulation.
Polymorphism.
Inheritance.
Delegation.
Aggregation.

COM.
Interfaces.

Custom Controls.
Methods Used to Build Controls.
Visual Basic 5 and 6.
MFC.
Visual Studio.NET.

ATL Controls in Detail.
Creating the Control Project.
Adding Properties.
Adding Methods.
Implementing Events.
Windows Message Maps.
Handling the Mouse.
Handling the Keyboard.
Property Pages.
Proper Property Persistence.
Enumerated Properties.
Categorizing Properties.
Returning Errors .
Safe for Initialization and Scripting.
Licensing.
IsimpleFrame.

Basing a Control on a Windows Control.
Composite Controls.

10. C# Basics.
The C# Type System.
Value Types in Action.
Reference Types.
Boxing and Unboxing.

Programming Concepts.
Namespaces.
Statements.
Operators.

Arrays.
struct.
Classes.
Object.
Methods.
Properties.
Operators.
Inheritance.

Interfaces.
Delegates.
Summary.

11. Applying C#.
C# WinForm Controls.
Creating the Control Project.
Coding the Control.

Control Elements.
NameSpaces.
Properties and Methods.
Events.
Design Time Support.
Drawing.

Summary.

A. Definition of Terms.
B. Character Code Tables.
C. C/C++ Keywords.
Index.

Caractéristiques techniques

  PAPIER
Éditeur(s) Addison Wesley
Auteur(s) Bill Locke
Parution 09/03/2002
Nb. de pages 420
Format 18,7 x 23,2
Couverture Broché
Poids 750g
Intérieur Noir et Blanc
EAN13 9780672322181

Avantages Eyrolles.com

Livraison à partir de 0,01 en France métropolitaine
Paiement en ligne SÉCURISÉ
Livraison dans le monde
Retour sous 15 jours
+ d'un million et demi de livres disponibles
satisfait ou remboursé
Satisfait ou remboursé
Paiement sécurisé
modes de paiement
Paiement à l'expédition
partout dans le monde
Livraison partout dans le monde
Service clients sav.client@eyrolles.com
librairie française
Librairie française depuis 1925
Recevez nos newsletters
Vous serez régulièrement informé(e) de toutes nos actualités.
Inscription