⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intro.htm

📁 用VC开发activeX控件的电子书,很不错的
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--last modified on Tue, Apr 15, 1997 2:20 PM-->
<HTML>

<HEAD>
<!-- This document was created from RTF source by rtftohtml version 3.0.1 -->

	<META NAME="GENERATOR" Content="Symantec Visual Page 1.0">
	<META NAME="Author" Content="Steph Mineart">
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
	<TITLE>Introduction</TITLE>
</HEAD>

<BODY TEXT="#000000" BGCOLOR="#FFFFFF">

<H1>Introduction</H1>

<UL>
	<LI><A HREF="#Heading2">You and This Book</A>
	<LI><A HREF="#Heading3">What You Need to Use This Book</A>
	<LI><A HREF="#Heading4">How This Book Is Organized</A>
	<UL>
		<LI><A HREF="#Heading5">Part I: Introduction to ActiveX</A>
		<LI><A HREF="#Heading6">Part II: ActiveX Automation Servers</A>
		<LI><A HREF="#Heading7">Part III: ActiveX Controls</A>
		<LI><A HREF="#Heading8">Part IV: COM Objects and Custom Interfaces</A>
		<LI><A HREF="#Heading9">Part V: Using Your Component and Advanced Topics</A>
	</UL>
	<LI><A HREF="#Heading10">Conventions Used in This Book</A>
	<LI><A HREF="#Heading11">Parting Remark</A>
</UL>

<P>
<HR SIZE="4">

<H1></H1>
<P>ActiveX development is at the brink of an amazing explosion of possibilities.
If you participate at all on the Internet newsgroups or mail lists, you know what
we mean. The number of developers doing ActiveX development has increased dramatically.
The type of development and the level of sophistication that applications are supporting
are incredible. All the work that Microsoft has done over the past five plus years,
starting with OLE 2, is beginning to pay off.</P>
<P>I remember sitting in an auditorium five years ago listening to a two and one-half
hour lecture on OLE Automation and thinking, &quot;Great, just what we need . . .
another macro language!,&quot; and also thinking that I had no clue what OLE was
going to do for development and the Windows platform. Well OLE 2 took all of us to
new levels in the development of integrated components.</P>
<P>With the advent of ActiveX, the future is looking brighter than ever. This book
is devoted to bringing that technology down to earth and into your hands. After reading
this book, you should feel confident that you can tackle any project or application
involving ActiveX, COM, and Windows.
<H2><A NAME="Heading2"></A>You and This Book</H2>
<P>When writing this book the question &quot;Who is the target audience?&quot; often
came up. We didn't want to answer that question by saying, &quot;It's for the beginner
ActiveX developer,&quot; and then produce a &quot;cookie cutter&quot; copy of every
other book on the market simply because it was safe or easy to do so. We also didn't
want to say, &quot;This book is only for advanced programmers,&quot; because that
would exclude a lot of developers. Not because we feel you aren't able to understand
the material, but because we would have to assume so much about your particular experience
and knowledge and omit a lot of basic information just to squeeze everything into
a book of this size. We also didn't want to lose anyone or make the book so hard
to read that no one would buy it.</P>
<P>The target audience for the book is the <I>intermediate to experienced</I> Windows
VC++ developer. We do make some assumptions about your knowledge of basic ActiveX/OLE/COM
architecture and of how to use the VC++ development environment. For example, you
should know what an ActiveX Automation Server is or at least have a pretty good idea
what it is. You should know how to compile applications and how to use the VC++ IDE
without having to search the manuals to find out how to &quot;update your project
dependencies,&quot; for example.</P>
<P>In this book, we describe how to create ActiveX controls using MFC, ATL, and BaseCtl.
The material is covered in a relatively small number of pages and advances fairly
rapidly from the basic concepts to advanced features. For those readers who are not
familiar with ActiveX development, we recommend starting with MFC, since MFC hides
a lot of the details from you. Move to ATL as your comfort level increases, and tackle
BaseCtl as the last subject.</P>
<P>We believe that this approach enables you to do one-to-one comparisons among the
different tools and get a feel for how easy it is to perform a set of tasks or a
particular implementation. For example, you can compare the size of the applications,
speed of the applications, development effort, learning curve, and so on.</P>
<P>You will also find that every topic is covered by every tool. Too many times,
books focus on a single method of implementation, never affording you the opportunity
to judge for yourself which tool makes the most sense for you. When we cover a section
on how to create COM interfaces using MFC, you can rest assured that we also show
you how to do the same with ATL and the BaseCtl.</P>
<P>Finally we believe our approach provides abundant <I>coverage. </I>At this time,
no other publication demonstrates how to create ActiveX components with all three
tools, let alone with as much detail as we provide in this book. And probably most
important, this book generates <I>experience. </I>If you walk away from this book
thinking, &quot;You know, I don't know everything about ActiveX, but with a little
time, I can learn anything I want to about it,&quot; then we'll be happy.
<H2><A NAME="Heading3"></A>What You Need to Use This Book</H2>
<P>All of the samples in this book were developed and tested by using Microsoft Visual
C++ 5.0. While a majority of the samples and examples involve Microsoft products
directly, MFC and ATL, you are not restricted in how you apply the fundamental principles
of ActiveX development. You may use any tool and obtain similar results.
<H2><A NAME="Heading4"></A>How This Book Is Organized</H2>
<P>This book is organized into five parts, with 16 chapters that cover a variety
of aspects of ActiveX programming. By no stretch of the imagination do we imply that
we cover <I>all</I> aspects of ActiveX development within this text. We cover only
those topics that we believe are of the most importance when using ActiveX on a day-to-day
basis.</P>
<P>This book assumes that you are reading the chapters in order, as they do build
upon the concepts, materials, and experiences gained from previous chapters. The
following sections provide an overview for each of the five parts of the book.
<H3><A NAME="Heading5"></A>Part I: Introduction to ActiveX</H3>
<P><A HREF="ch01.htm">Chapter 1</A> is an overview of ActiveX and what it means to
you as a developer. <A HREF="ch02.htm">Chapter 2</A> examines the different types
of ActiveX components that can be created and the advantages and disadvantages of
each. <A HREF="ch02.htm">Chapter 2</A> also looks at the types of tools available
for creating components and their relative strengths and weaknesses.
<H3><A NAME="Heading6"></A>Part II: ActiveX Automation Servers</H3>
<P><A HREF="ch03.htm">Chapter 3</A> examines in detail the creation of ActiveX Automation
Servers using MFC. The chapter starts with the most fundamental aspects of server
creation involving methods and properties. It also covers how to expand the basic
MFC framework in order to add new features such as shared objects and single instance
servers. <A HREF="ch04.htm">Chapter 4</A> explains how to use ATL to create Automation
Servers, and, finally, <A HREF="ch05.htm">Chapter 5</A> explores the ActiveX BaseCtl
sample and how it, too, can be used to create Automation Servers.
<H3><A NAME="Heading7"></A>Part III: ActiveX Controls</H3>
<P>Part III, like Part II, contains chapters on MFC, ATL, and BaseCtl. <A HREF="ch06.htm">Chapters
6</A> and <A HREF="ch07.htm">7</A> explain how to create ActiveX controls using MFC.
<A HREF="ch06.htm">Chapter 6</A> looks at how to implement some of the basic features
of controls, such as methods, properties, and events. <A HREF="ch07.htm">Chapter
7</A> examines more advanced concepts such as asynchronous properties and Drag and
Drop support. <A HREF="ch08.htm">Chapters 8</A> and <A HREF="ch09.htm">9</A> explain
how to use ATL to create controls, and <A HREF="ch10.htm">Chapters 10</A> and <A
HREF="ch11.htm">11</A> explain how to use the BaseCtl sample to create controls.
<H3><A NAME="Heading8"></A>Part IV: COM Objects and Custom Interfaces</H3>
<P><A HREF="ch12.htm">Chapter 12</A> is a detailed description of creating COM objects
and Custom Interfaces using MFC. This chapter along with <A HREF="ch13.htm">Chapters
13</A> and <A HREF="ch14.htm">14</A> focus on how to create the most fundamental
aspect of ActiveX development: interface development. <A HREF="ch13.htm">Chapter
13</A> examines using ATL to create COM objects, and <A HREF="ch14.htm">Chapter 14</A>
shows how you can implement COM interfaces without a framework such as MFC and ATL.
<H3><A NAME="Heading9"></A>Part V: Using Your Component and Advanced Topics</H3>
<P><A HREF="ch15.htm">Chapter 15</A> looks at the types of containers and testing
applications that are available to you as an ActiveX developer so that you can use
and test your newly created components. <A HREF="ch16.htm">Chapter 16</A> introduces
you to more advanced concepts of ActiveX, such as DCOM, the Internet, and OLE DB,
to name a few. These two chapters are not full descriptions of the topics listed
but merely brief explanations of the concepts involved and how you can exploit them.
<H2><A NAME="Heading10"></A>Conventions Used in This Book</H2>
<P>To make this book easier to understand, the following conventions are used:</P>
<P>Characters that you are asked to type are shown in <B>bold</B> font.</P>
<P>A word or phrase used for the first time appears in <I>italic</I> font and is
usually accompanied by a definition.</P>
<P>Bulleted lists are used for items that do not require a special order.</P>
<P>Numbered lists are used when you need to follow items or steps in a particular
sequence.</P>
<P>This book also includes special Notes, Tips, and Cautions, which are set off,
as follows: <BR>
<BR>
<IMG SRC="bar.gif" WIDTH="480" HEIGHT="6" ALIGN="BOTTOM" BORDER="0"></P>


<BLOCKQUOTE>
	<P><B>NOTE:</B> This is an example of a Note. Notes provide additional information
	about issues that you should consider in using the described features or point out
	specific areas of interest in a particular section of code.

</BLOCKQUOTE>

<P><IMG SRC="bar.gif" WIDTH="480" HEIGHT="6" ALIGN="BOTTOM" BORDER="0"><BR>
<BR>
Descriptive heads are added to code listings to help you easily find and use the
sample code and the application files shown throughout this book. The sample code
in this book can be found on Que's Web site located at <A HREF="http://www.quecorp.com/activexvc"><B>http://www.quecorp.com/activexvc</B></A>.</P>
<P>Occasionally within code listings, lines of code are too long to fit on one line.
When this occurs, the code is broken into two of more lines. Boldface font is used
to emphasize some lines of code in listings.</P>
<P>Some code fragments are included in the text. These fragments are set in <TT>monospace</TT>
font, for example, <TT>#include &quot;CPATLControl.h&quot;</TT>.
<H2><A NAME="Heading11"></A>Parting Remark</H2>
<P>Writing this book has been a tremendous learning experience. ActiveX development
is far and away one of today's most exciting aspects of PC and client/server development.
The tool sets and applications have finally matured to the level that real progress
and advances can be made in component and applications development. We truly hope
that we can all look back in another five years and think, &quot;Wow, look how far
we've come since then. And, of course, look how much is still ahead of us .&quot;</p>

<p><hr></p>
<center>
<p><font size=-2>
&copy; 1997, QUE Corporation, an imprint of Macmillan Publishing USA, a
Simon and Schuster Company.</font></p>
</center>


</BODY>

</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -