An ActiveX client is an application or programming tool that manipulates one or more ActiveX objects. The objects can exist in the same application or in another application. Clients can use existing objects, create new instances of objects, get and set properties, and invoke methods supported by the object.
Visual Basic is an ActiveX client. You can use Visual Basic and similar programming tools to create packaged scripts that access Automation objects. You can also create clients by doing the following:
Writing code within an application that accesses another application's exposed objects through Automation.
Revising an existing programming tool, such as an embedded macro language, to add support for Automation.
Developing a new application, such as a compiler or type information browser, that supports Automation.
2007年3月14日星期三
Exposing Objects
Exposing objects provides a way to manipulate an application's tools programmatically. This allows customers to use a programming tool that automates repetitive tasks that might not have been anticipated.
For example, Microsoft Excel exposes a variety of objects that can be used to build applications. One such object is the Workbook, which contains a group of related worksheets, charts, and macros — the Microsoft Excel equivalent of a three-ring binder. Using Automation, you could write an application that accesses Microsoft Excel Workbook objects, possibly to print them, as in the following diagram:
With Automation, solution providers can use your general-purpose objects to build applications that target a specific task. For example, you could use a general-purpose drawing tool to expose objects that draw boxes, lines, and arrows, insert text, and so forth. Another programmer could build a flowchart tool by accessing the exposed objects and then adding a user interface and other application-specific features.
Exposing objects to Automation or supporting Automation within a macro language offers several benefits.
Exposed objects from many applications are available in a single programming environment. Software developers can choose from these objects to create solutions that span applications.
Exposed objects are accessible from any macro language or programming tool that implements Automation. Systems integrators are not limited to the programming language in which the objects were developed. Instead, they can choose the programming tool or macro language that best suits their own needs and capabilities.
Object names can remain consistent across versions of an application, and can conform automatically to the user's national language.
For example, Microsoft Excel exposes a variety of objects that can be used to build applications. One such object is the Workbook, which contains a group of related worksheets, charts, and macros — the Microsoft Excel equivalent of a three-ring binder. Using Automation, you could write an application that accesses Microsoft Excel Workbook objects, possibly to print them, as in the following diagram:
With Automation, solution providers can use your general-purpose objects to build applications that target a specific task. For example, you could use a general-purpose drawing tool to expose objects that draw boxes, lines, and arrows, insert text, and so forth. Another programmer could build a flowchart tool by accessing the exposed objects and then adding a user interface and other application-specific features.
Exposing objects to Automation or supporting Automation within a macro language offers several benefits.
Exposed objects from many applications are available in a single programming environment. Software developers can choose from these objects to create solutions that span applications.
Exposed objects are accessible from any macro language or programming tool that implements Automation. Systems integrators are not limited to the programming language in which the objects were developed. Instead, they can choose the programming tool or macro language that best suits their own needs and capabilities.
Object names can remain consistent across versions of an application, and can conform automatically to the user's national language.
Component Automation
Overview of Automation
Automation (formerly called OLE Automation) is a technology that allows software packages to expose their unique features to scripting tools and other applications. Automation uses the Component Object Model (COM), but may be implemented independently from other OLE features, such as in-place activation. Using Automation, you can:
Create applications and programming tools that expose objects.
Create and manipulate objects exposed in one application from another application.
Create tools that access and manipulate objects. These tools can include embedded macro languages, external programming tools, object browsers, and compilers.
The objects an application or programming tool exposes are called ActiveX objects. Applications and programming tools that access those objects are called ActiveX clients. ActiveX objects and clients interact as follows: Applications and other software packages that support ActiveX technology define and expose objects which can be acted on by ActiveX components. ActiveX components are physical files (for example .exe and .dll files) that contain classes, which are definitions of objects. Type information describes the exposed objects, and can be used by ActiveX components at either compile time or at run time.
Automation (formerly called OLE Automation) is a technology that allows software packages to expose their unique features to scripting tools and other applications. Automation uses the Component Object Model (COM), but may be implemented independently from other OLE features, such as in-place activation. Using Automation, you can:
Create applications and programming tools that expose objects.
Create and manipulate objects exposed in one application from another application.
Create tools that access and manipulate objects. These tools can include embedded macro languages, external programming tools, object browsers, and compilers.
The objects an application or programming tool exposes are called ActiveX objects. Applications and programming tools that access those objects are called ActiveX clients. ActiveX objects and clients interact as follows: Applications and other software packages that support ActiveX technology define and expose objects which can be acted on by ActiveX components. ActiveX components are physical files (for example .exe and .dll files) that contain classes, which are definitions of objects. Type information describes the exposed objects, and can be used by ActiveX components at either compile time or at run time.
2007年3月10日星期六
VOASE0309_In the News
3.10.2007
VOASE0309_In the News
09 March 2007
Congress Investigates Treatment of Wounded Troops Returning Home
Lawmakers go to Walter Reed Army Medical Center in Washington to hear about poor living conditions. President Bush creates a commission to study military health care.
Download
VOASE0309_In the News
09 March 2007
Congress Investigates Treatment of Wounded Troops Returning Home
Lawmakers go to Walter Reed Army Medical Center in Washington to hear about poor living conditions. President Bush creates a commission to study military health care.
Download
This is IN THE NEWS in VOA Special English.
Army Specialist Jeremy Duncan and Annette McLeod, wife of a soldier, appear at a House hearing at Walter Reed Army Medical CenterBoth houses of Congress held hearings this week on conditions at Walter Reed Army Medical Center in Washington. Investigations began after the Washington Post reported last month on poor living conditions for soldiers recovering from war wounds. Some said they had to wait months for follow-up treatment or separation from the Army.
The newspaper described, for example, a building where recovering soldiers had to live with mice, mold and insects.
Military officials apologized at a hearing held Monday at Walter Reed by members of the House of Representatives. Lawmakers also heard from soldiers and family members about long delays with paperwork.
An Army document shows that officials at Walter Reed and the Army Medical Command were warned last year about a risk of system overload. More than twenty thousand service members have been wounded in Iraq alone.
Another issue involves brain injuries in troops wounded in Iraq and Afghanistan. Recent news reports have told of some having to wait months for treatment. Congress has demanded that the Department of Veterans Affairs improve the situation.
An explosion that shakes the brain can cause traumatic brain injury. Doctors may not be able to see any injuries. But signs of it can include headaches, feeling tense, sleep disorders, memory problems and depression.
The department says all patients who recently served in Iraq or Afghanistan will now be tested for traumatic brain injury. The new testing will start in the spring at all one hundred fifty-five V.A. medical centers. And all V.A. health care providers will be trained about this kind of injury.
In announcing the plan, V.A. Secretary Jim Nicholson noted that the department "is a nationally recognized leader in health care."
But this is not the first time the veterans hospital system has been criticized for poor service. The system began in the nineteen thirties. Over the years, it has gone through periods with more patients than it could handle. World War Two, for example, created waiting lists for beds in veterans hospitals.
Walter Reed is a leading military hospital. But a two thousand five law to reorganize military bases calls for it to close four years from now. Army officials say they are moving quickly to deal with the problems there. The hospital's commander for the past six months was replaced and the secretary of the Army was forced to resign.
But problems are being described not just at Walter Reed. President Bush says he is concerned that soldiers and their families are not getting the treatment they should. This week he established a commission to examine health care both at the Defense Department and the Department of Veterans Affairs. Former Senator Bob Dole, a Republican, and former health secretary Donna Shalala, a Democrat, have agreed to head the commission.
And that's IN THE NEWS in VOA Special English, written by Brianna Blake. I’m Steve Ember.
Army Specialist Jeremy Duncan and Annette McLeod, wife of a soldier, appear at a House hearing at Walter Reed Army Medical CenterBoth houses of Congress held hearings this week on conditions at Walter Reed Army Medical Center in Washington. Investigations began after the Washington Post reported last month on poor living conditions for soldiers recovering from war wounds. Some said they had to wait months for follow-up treatment or separation from the Army.
The newspaper described, for example, a building where recovering soldiers had to live with mice, mold and insects.
Military officials apologized at a hearing held Monday at Walter Reed by members of the House of Representatives. Lawmakers also heard from soldiers and family members about long delays with paperwork.
An Army document shows that officials at Walter Reed and the Army Medical Command were warned last year about a risk of system overload. More than twenty thousand service members have been wounded in Iraq alone.
Another issue involves brain injuries in troops wounded in Iraq and Afghanistan. Recent news reports have told of some having to wait months for treatment. Congress has demanded that the Department of Veterans Affairs improve the situation.
An explosion that shakes the brain can cause traumatic brain injury. Doctors may not be able to see any injuries. But signs of it can include headaches, feeling tense, sleep disorders, memory problems and depression.
The department says all patients who recently served in Iraq or Afghanistan will now be tested for traumatic brain injury. The new testing will start in the spring at all one hundred fifty-five V.A. medical centers. And all V.A. health care providers will be trained about this kind of injury.
In announcing the plan, V.A. Secretary Jim Nicholson noted that the department "is a nationally recognized leader in health care."
But this is not the first time the veterans hospital system has been criticized for poor service. The system began in the nineteen thirties. Over the years, it has gone through periods with more patients than it could handle. World War Two, for example, created waiting lists for beds in veterans hospitals.
Walter Reed is a leading military hospital. But a two thousand five law to reorganize military bases calls for it to close four years from now. Army officials say they are moving quickly to deal with the problems there. The hospital's commander for the past six months was replaced and the secretary of the Army was forced to resign.
But problems are being described not just at Walter Reed. President Bush says he is concerned that soldiers and their families are not getting the treatment they should. This week he established a commission to examine health care both at the Defense Department and the Department of Veterans Affairs. Former Senator Bob Dole, a Republican, and former health secretary Donna Shalala, a Democrat, have agreed to head the commission.
And that's IN THE NEWS in VOA Special English, written by Brianna Blake. I’m Steve Ember.
订阅:
博文 (Atom)