
Résumé
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?
32 Bit.
.NET.
Visual Basic's Contribution.
Weaknesses of Visual Basic.
C++'s Contribution.
Weaknesses of C++.
C#.
2. C Basics.
Identifiers.
Constants.
Literals.
Predefined Constants and Macros.
Structure.
Code Structure.
Lifetime.
Scope and Visibility.
Functions.
Definitions.
Invoking Functions.
main, wmain, DllMain.
Function Pointers.
Summary.
3. C Programming.
Variables and Declarators.
Initialization.
Expressions.
Precedence.
Conversions and Type Casts.
Statements.
Control and Flow.
Looping.
Summary.
4. C++ Basics.
Identifiers.
Constants and Literals.
Structure.
Scope, Visibility, and Lifetime.
Linkage.
Functions.
Variable Number of Parameters.
Overloading.
Variables and Data.
C++ Definitions and Declarations.
Variables and Declarators.
Namespace.
Expressions.
Casting.
Statements.
C++ Exception Handling.
Structured Exception Handling.
Summary.
5. C++ Classes.
Basics of Classes.
Names.
Class Members.
Member Variables.
Member Functions.
Member Access Control.
friend Functions.
Derived Classes.
Multiple Base Classes.
Using Declaration.
Abstract Classes.
Summary.
6. C++ and Windows.
Message Subsystem.
How a Windows Program Works.
Creating a Main Window.
Base Services.
GDI.
Summary.
7. C DLLs.
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.
Two-Byte Integers (Integer).
Four-byte Real (Single).
Eight-Byte Real (Double).
Boolean.
Currency.
Using Strings.
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.
Some Finer Points of the IDL File.
Adding Resources to a DLL.
Samples of C DLLs.
Support of InstallShield.
Extended Stored Procedures.
Callbacks, Hooks, and Other Nasty Things.
Summary.
9. Components and Controls.
Components and Inheritance.
Abstraction.
Encapsulation.
Polymorphism.
Inheritance.
Delegation.
Aggregation.
COM.
Custom Controls.
Methods Used to Build Controls.
MFC.
Visual Studio.NET.
ATL Controls in Detail.
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.
Reference Types.
Boxing and Unboxing.
Programming Concepts.
Statements.
Operators.
Arrays.
struct.
Classes.
Methods.
Properties.
Operators.
Inheritance.
Interfaces.
Delegates.
Summary.
11. Applying C#.
Coding the Control.
Control Elements.
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
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse