没有合适的资源?快使用搜索试试~ 我知道了~
首页2016年英文版《C++ Windows编程实战指南》
2016年英文版《C++ Windows编程实战指南》
需积分: 9 35 下载量 178 浏览量
更新于2023-05-31
收藏 31.9MB PDF 举报
《Windows环境下C++编程》是一本2016年出版的专业书籍,由Stefan Björnander撰写,由Packt Publishing发行。该书专为在Windows系统上开发实际应用设计,深入讲解了C++语言与Windows平台的集成。作为一本英文原版教材,它旨在帮助读者理解如何利用C++构建高效、功能丰富的Windows应用程序。 本书涵盖了C++在Windows开发中的核心概念,包括但不限于窗口编程、控件设计、事件处理、多线程、网络通信以及Windows API的使用。作者通过实例和详尽的步骤,引导读者从基础操作到高级技术,确保读者能够掌握必要的技能来创建交互式且性能优越的应用程序。 版权方面,所有版权信息均受到严格保护,未经版权所有者Packt Publishing事先书面许可,不得复制、存储或以任何形式传输书中的内容,即使是引用也必须在批评性文章或评论中遵循恰当的规定。 尽管作者和出版社已经尽最大努力确保信息的准确性,但书中提供的内容并非无懈可击,其销售不带有明示或暗示的保证,也不承担因使用本书内容而直接或间接造成的损失的责任。此外,尽管书中提及了一些公司的商标信息,但Packt Publishing并不能保证这些信息的准确性。 《Windows环境下C++编程》于2016年9月首次发布,生产参考号为1020916。这是一本适合C++开发者、软件工程师和Windows平台爱好者深入学习和实践的实用指南,无论是初学者还是经验丰富的开发者,都能从中受益匪浅。通过阅读这本书,读者将能够提升自己的C++编程能力,并将其应用于实际的Windows项目开发中。
资源详情
资源推荐
Preface
[ 2 ]
Chapter 9, Formula Interpretation, explains that when the user inputs a formula, we need to
interpret it. The process is divided into scanning and parsing, which we will look into in
this chapter.
Chapter 10, The Framework, describes the most central part of Small Windows. This chapter
begins the description of Small Windows. The Application class handles the message loop
of the application and the registration of Windows classes. The Window class handles basic
window functionality.
Chapter 11, The Document, talks about the document-based Window subclasses, that is, the
Document class that provides basic document functionality, such as menus and
accelerators, and the Standard Document framework, which provides a document-based
framework.
Chapter 12, The Auxiliary Classes, explores a set of small auxiliary classes handling points
and sizes, rectangles, colors and fonts, dynamic lists, and tree structures.
Chapter 13, The Registry, Clipboard, Standard Dialogs, and Print Preview, explains the
implementation of the registry and clipboard, the standard dialogs to save and load files,
choosing color or font, or printing a document. The chapter also explains the
implementation a class for print previewing.
Chapter 14, Dialogs, Controls, and Print Setup, describes the possibility to design custom
dialogs with controls such as push buttons, check boxes, radio buttons, list boxes, combo
boxes, and text field. The input of a text field can be converted to any type. Finally, the Print
Setup dialog is a custom dialog annotated with suitable controls.
What you need for this book
First of all, you need to download Visual Studio on your computer. I suggest you download
and install Express for Desktop, which is free, and is available at h t t p s : / / w w w . v i s u a l s t u d
i o . c o m / e n - u s / p r o d u c t s / v i s u a l - s t u d i o - e x p r e s s - v s . a s p x.
Then, there are two ways to install Small Windows:
If you want to follow the chapter structure of this book you can download it from1.
h t t p s : / / g i t h u b . c o m / P a c k t P u b l i s h i n g / C p p - W i n d o w s - P r o g r a m m i n g. It is made
up by a set of Visual Studio projects holding the applications of this book.
If you want all the code in one Visual Studio solution you can download the C++2.
Windows Programming solution in the Cpp Windows Programming file.
Preface
[ 3 ]
If you want to write code with Small Windows on your own, you can download3.
the Empty project in the Empty Project file. It is an application holding only the
Small Windows source code with a very simple application. You can change the
name of the project and add your own application-specific code.
Who this book is for
This book is for application developers who want a head-first approach into Windows
programming. It will teach you how to develop an object-oriented class library in C++ and
enhanced applications in Windows. Basic knowledge of C++ and the object-oriented
framework is assumed to get the most out of this book.
Conventions
In this book, you will find a number of text styles that distinguish between different kinds
of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions,
pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The first
part of a Small Windows application is the MainWindow function."
A block of code is set as follows:
void MainWindow(vector<String>argumentList,
SmallWindows::WindowShow windowShow);
New terms and important words are shown in bold. Words that you see on the screen, for
example, in menus or dialog boxes, appear in the text like this: "For instance, often, the
Open item in the File menu is annotated with the text Ctrl+O."
Warnings or important notes appear in a box like this.
Tips and tricks appear like this.
Preface
[ 4 ]
Reader feedback
Feedback from our readers is always welcome. Let us know what you think about this
book-what you liked or disliked. Reader feedback is important for us as it helps us develop
titles that you will really get the most out of. To send us general feedback, simply e-
mail feedback@packtpub.com, and mention the book's title in the subject of your
message. If there is a topic that you have expertise in and you are interested in either
writing or contributing to a book, see our author guide at www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packt book, we have a number of things to help you
to get the most from your purchase.
Downloading the example code
You can download the example code files for this book from your account at h t t p : / / w w w . p
a c k t p u b . c o m. If you purchased this book elsewhere, you can visit h t t p : / / w w w . p a c k t p u b . c
o m / s u p p o r t and register to have the files e-mailed directly to you.
You can download the code files by following these steps:
Log in or register to our website using your e-mail address and password.1.
Hover the mouse pointer on the SUPPORT tab at the top.2.
Click on Code Downloads & Errata.3.
Enter the name of the book in the Search box.4.
Select the book for which you're looking to download the code files.5.
Choose from the drop-down menu where you purchased this book from.6.
Click on Code Download.7.
Once the file is downloaded, please make sure that you unzip or extract the folder using the
latest version of:
WinRAR / 7-Zip for Windows
Zipeg / iZip / UnRarX for Mac
7-Zip / PeaZip for Linux
Preface
[ 5 ]
The code bundle for the book is also hosted on GitHub at h t t p s : / / g i t h u b . c o m / P a c k t P u b l
i s h i n g / C p p - W i n d o w s - P r o g r a m m i n g. We also have other code bundles from our rich catalog
of books and videos available at h t t p s : / / g i t h u b . c o m / P a c k t P u b l i s h i n g /. Check them
out!
Downloading the color images of this book
We also provide you with a PDF file that has color images of the screenshots/diagrams used
in this book. The color images will help you better understand the changes in the output.
You can download this file from h t t p s : / / w w w . p a c k t p u b . c o m / s i t e s / d e f a u l t / f i l e s / d o w n
l o a d s / C p p W i n d o w s P r o g r a m m i n g _ C o l o r I m a g e s . p d f.
Errata
Although we have taken every care to ensure the accuracy of our content, mistakes do
happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-
we would be grateful if you could report this to us. By doing so, you can save other readers
from frustration and help us improve subsequent versions of this book. If you find any
errata, please report them by visiting h t t p : / / w w w . p a c k t p u b . c o m / s u b m i t - e r r a t a, selecting
your book, clicking on the Errata Submission Form link, and entering the details of your
errata. Once your errata are verified, your submission will be accepted and the errata will
be uploaded to our website or added to any list of existing errata under the Errata section of
that title.
To view the previously submitted errata, go to h t t p s : / / w w w . p a c k t p u b . c o m / b o o k s / c o n t e n
t / s u p p o r t and enter the name of the book in the search field. The required information will
appear under the Errata section.
Piracy
Piracy of copyrighted material on the Internet is an ongoing problem across all media. At
Packt, we take the protection of our copyright and licenses very seriously. If you come
across any illegal copies of our works in any form on the Internet, please provide us with
the location address or website name immediately so that we can pursue a remedy.
Please contact us at copyright@packtpub.com with a link to the suspected pirated
material.
We appreciate your help in protecting our authors and our ability to bring you valuable
content.
Preface
[ 6 ]
Questions
If you have a problem with any aspect of this book, you can contact us
at questions@packtpub.com, and we will do our best to address the problem.
剩余576页未读,继续阅读
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功