Visual Basic 6 Programming Blue Book: The Most Complete, Hands-On Resource for Writing Programs with Microsoft Visual Basic 6!:ActiveX Components
function GetCookie (name)
{
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen)
{
var j = i + alen;
if (document.cookie.substring(i, j) == arg) {
var end = document.cookie.indexOf (";", j);
if (end == -1)
end = document.cookie.length;
return unescape(document.cookie.substring(j, end));
}
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
var m1='';
var gifstr=GetCookie("UsrType");
if((gifstr!=0 ) && (gifstr!=null)) { m2=gifstr; }
document.write(m1+m2+m3);
Keyword
Title
Author
ISBN
Publisher
Imprint
Brief
Full
Advanced Search
Search Tips
Please Select
-----------
Components
Content Mgt
Certification
Databases
Enterprise Mgt
Fun/Games
Groupware
Hardware
IBM Redbooks
Intranet Dev
Middleware
Multimedia
Networks
OS
Prod Apps
Programming
Security
UI
Web Services
Webmaster
Y2K
-----------
New Titles
-----------
Free Archive
To access the contents, click the chapter and section titles.
Visual Basic 6 Programming Blue Book: The Most Complete, Hands-On Resource for Writing Programs with Microsoft Visual Basic 6!
(Publisher: The Coriolis Group)
Author(s): Peter G. Aitken
ISBN: 1576102815
Publication Date: 08/01/98
function isIE4()
{
return( navigator.appName.indexOf("Microsoft") != -1 && (navigator.appVersion.charAt(0)=='4') );
}
function bookMarkit()
{
var url="http://www.itknowledge.com/PSUser/EWBookMarks.html?url="+window.location+"&isbn=0";
parent.location.href=url;
//var win = window.open(url,"myitk");
//if(!isIE4())
// win.focus();
}
Search this book:
Previous
Table of Contents
Next
Chapter 8ActiveX Components
ActiveX is hot, and Visual Basic lets you join the party.
One of Visual Basics strong points is its ability to use existing software components that provide sophisticated functionality for your project, freeing you from writing the code or designing the interface. Although controls represent an example of a software component, they are not the only type. Since the introduction of Visual Basic, this notion of software components has continued to expand. In fact, many of the industrys movers and shakers now consider it central to their vision of the future of desktop computing. If you are programming for the Windows operating system, the most important software component technology you need to master is ActiveX. In this chapter, we will see exactly what ActiveX technology is, and we will work through a project in which you create your own ActiveX software component.
Whats In A Name?
A number of years ago, programmers realized that the functionality of software would be greatly enhanced if capabilities could be shared among programs. Let me illustrate with an example. Suppose you were creating a report using a word processor and needed to include a table of figures and calculations in your document. Your spreadsheet program is perfectly suited to creating such a table, but how could you access the spreadsheet program from within your word processor? The answer: Object Linking and Embedding, or OLE. With OLE, you can insert a spreadsheet object within a word processor documentin other words, create a compound document. While working in the word processor, you can activate the spreadsheet object, which starts the spreadsheet program and allows you to work on the table just as if it were a regular spreadsheet (which, in many ways, it is). When you exit the spreadsheet program, the table, with all of the changes you made, would display in the word processor document.
OLE is based on a broader technology called the Component Object Model, or COM. As this technology spread well beyond the creation of compound documents, the name OLE came to be applied to anything that used the COM paradigmincluding, but not limited to, compound document capabilities.
Not too long ago, a new term entered the scene: ActiveX. Initially, ActiveX referred to technologies that used the COM paradigm for Internet and World Wide Web-related tasks. Before long, however, ActiveX came to subsume more and more of the entire COM worldregardless of whether a specific item was related to the Internet. The term OLE has gone back to its original, more limited meaning involving the creation of compound documents. This is where we stand todayalthough nothing is quite as sure as change, especially in the world of computers.
Whenever you hear the term ActiveX realize that it refers to a wide range of COM-based techniqu
Wyszukiwarka
Podobne podstrony:
FIDE Trainers Surveys 2014 08 01, Andrew Martin Game analysisRush Pounds People Universe (08 01 2015) Tracklista08 0108 01 skladniki oprogramowania sieci klient karta protokol uslugaFIDE Trainers Surveys 2014 08 01, Boris Avrukh Exchange sacrificeKomitet wyklucza z wyborów polityków sunnickich (08 01 2010)Fabryka dźwięków syntetycznych 2010 08 01UN wyklad podstawy naw inerc od 08 01Manual de escaneo, procesamiento y OCR Ajedrez, Mi Pasión, 2012 08 0108 01 Modernizacje i rozbudowyKPC Wykład (13) 08 01 2013więcej podobnych podstron