Teach Yourself Visual C++ 6 In 21 Days.pdf
(
5681 KB
)
Pobierz
Introduction
Welcome to Visual C++. Over the next 21 days, you will learn how to use the features
that Microsoft has built into its C++ development environment to enable you to create
very advanced applications for the Windows and NT platforms. When Microsoft’s devel-
opers first came up with the idea behind Visual C++, they decided to take their world-
class C++ compiler and create a development environment and set of tools that would
enable developers to create Windows applications with a level of ease and speed that was
unheard of among C++ development environments. Since that first version, Microsoft
has continued to improve the tools that are a part of Visual C++ to make it even easier to
create Windows applications. As Microsoft has introduced new technologies into the
Windows platforms, it has also introduced tools into the Visual C++ suite to make it easy
to integrate these new technologies into your applications.
If you are new to C++, don’t worry. I’ve tried to make it easy for you to learn the C++
programming language while also learning how to build applications using the Visual
C++ tools. Just in case you find yourself having trouble understanding some aspect of
C++, I’ve included a brief overview of the programming language in Appendix A,
“C++ Review.”
If you’ve looked at previous versions of this book, you might notice that I’ve completely
rewritten the entire book. Our goal with this new version is not just to introduce you to
and guide you through the various tools and resources that you will use to build applica-
tions with Visual C++; I’ve also tried to include a great deal more detail about the vari-
ous options that are available to you with each of the features that are covered. This way,
you’ll be able to get a lot of use out of this book long after the initial 21 days.
How This Book Is Organized
This book is organized in weeks, with each set of seven days set off into a part unto
itself. However, even though the book is organized in weeks, the topics are not neces-sar-
ily organized that way.
For the first week, you’ll be covering the basics of building applications with Visual
C++. You’ll learn how to use designers to design your application windows. You’ll learn
how to use various controls available to you as a Windows application developer. You’ll
also learn a lot about the Visual C++ development environment and the tools that it
makes available to you.
2
Sams Teach Yourself Visual C++ 6 in 21 Days
By the time you begin the second week, you’ll be doing more and more programming, as
the topics become more involved. You’ll still be using the Visual C++ tools to construct
your applications, but the programming code will be getting a little more involved. You’ll
also start learning about more advanced topics, such as displaying graphics and creating
SDI and MDI applications. Toward the end of the second week, you’ll begin to work
with databases. This topic spills over into the third and final week.
In the third week, you’ll learn how to create your own modules, DLLs, and ActiveX con-
trols. You’ll also learn how to build multitasking applications, which perform multiple
tasks at a time. Finally, you’ll learn how to integrate Microsoft Internet Explorer, and the
ActiveX controls it provides, into your applications so that you can extend your applica-
tions over the Internet.
After you finish the third week, you’ll be ready to tackle the world of Windows program-
ming with Visual C++. You’ll have the skills and know-how required to build most
Windows applications available today.
Conventions Used in This Book
While you are reading this book, you will probably notice a couple conventions that have
been used to make it easier for you to learn the topic being discussed.
All the source code in this book is provided in a
monospaced
font, as shown in Listing
0.1. This includes all the source code from the applications that you will be building and
illustrations of how various functions can be used. Whenever you are adding new code,
or changing code in a function with other code already there, the line numbers of the
code that you add or change will be pointed out in the text.
L
ISTING
0.1. S
OME SAMPLE CODE
.
1: void main()
2: {
3: // if you are adding or changing code in an existing
4: // code snippet, I will point out the line numbers in the text.
5: }
If a topic needs special attention, it will be set apart from the rest of the text by one of
several special markers:
l
Notes
l
Tips
l
Cautions
Introduction
3
Note
Notes offer a deeper explanation of a topic or explain interesting or impor-
tant points.
Tip
Tips are pieces of information that can make things easier.
Caution
Cautions warn you about traps that you will want to avoid.
At the end of each day, you’ll find a short quiz and one or two exercises to help make
sure that you learned the topic you were studying. Don’t worry—just in case you need
the answers to the quizzes and some guidance when building the exercises, the solutions
are provided in Appendix B, “Answers.”
Enough said! You didn’t buy this book to read about this book. You bought this book to
learn how to use Visual C++ to build Windows applications. So go ahead and flip the
page and get started programming…
W
EEK
1
1
At a Glance
2
Welcome to the world of Visual C++. Over the next three
weeks, you’ll learn how to build a wide variety of applica-
tions using this extremely flexible and complete programming
tool. Each day you’ll learn about a different area of function-
ality and how you can use it in your applications. What’s
more—every one of the areas of functionality will be accom-
panied with a hands-on sample application that you will build
yourself. There’s not a more effective way of learning new
technologies than to work with them yourself. Learning by
doing…that’s what you’ll do as you make your way through
this book.
3
4
Over the course of the first week, you’ll learn about several
of the basics that are involved in building applications with
Visual C++. This starts on the first day as you learn about and
become familiar with the Visual C++ development environ-
ment by building a simple application.
5
On Day 2, you’ll begin learning more about the specifics of
building applications in Visual C++. You’ll learn about the
standard controls that are used in Windows applications, how
you can place and configure these on an application window,
and how you can interact with them.
6
On Day 3, you’ll learn how you can capture mouse and key-
board events and react to them in your applications. You’ll
see how you can determine where the mouse is in your appli-
cation space. You’ll also learn how to determine what keys
the user is pressing on the keyboard and how you can react to
these user actions.
7
Plik z chomika:
andri98z
Inne pliki z tego folderu:
C++ Schaum - Outline Of Theory Problems Of Programming With C++.pdf
(42599 KB)
Object-Oriented Programming in C++ 4th Edition.pdf
(8698 KB)
A Guide To Multithreaded Programming.pdf
(931 KB)
Visual C++ .NET Optimization with Assembly Code.chm
(10023 KB)
SAMS - Teach Yourself Microsoft Visual C++ .NET in 24 Hours.chm
(3817 KB)
Inne foldery tego chomika:
543 For Dummies E-Books
Addison Wesley
Apress
Business(2)
Cisco Press
Zgłoś jeśli
naruszono regulamin