没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
P2/V1/SWG2 TY Visual C++ in 14/21/Week 31240-9 Marcia Intro Lp#2
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.
001 31240-9 INTRO 2/18/99 10:44 AM Page 1
P2/V1/SWG2 TY Visual C++ in 14/21/Week 31240-9 Marcia Intro Lp#2
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.
LISTING 0.1. SOME 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:
●
Notes
●
Tips
●
Cautions
001 31240-9 INTRO 2/18/99 10:44 AM Page 2
Introduction 3
P2/V1/SWG2 TY Visual C++ in 14/21/Week 31240-9 Marcia Intro Lp#2
Notes offer a deeper explanation of a topic or explain interesting or impor-
tant points.
Note
Tips are pieces of information that can make things easier.
Tip
Cautions warn you about traps that you will want to avoid.
Caution
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…
001 31240-9 INTRO 2/18/99 10:44 AM Page 3
P2/V1/SWG2 TY Visual C++ in 14/21/Week 31240-9 Marcia Intro Lp#2
001 31240-9 INTRO 2/18/99 10:44 AM Page 4
At a Glance
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.
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.
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.
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.
P2/V1/SWG2 TY Visual C++ in 21 Days #31240-9 Marcia AAG WK 3 Lp#1
WEEK 1
1
2
3
4
5
6
7
002 31240-9 AAG Wk1 2/18/99 10:45 AM Page 5
剩余797页未读,继续阅读
「已注销」
- 粉丝: 56
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论3