mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2026-04-05 09:39:31 +02:00
Author:admin
Date:2008-09-30T16:23:49.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@65 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
[[Property:title|EiffelCOM Class Reference]]
|
||||
[[Property:weight|0]]
|
||||
[[Property:uuid|476f2bc7-9afa-125e-0b68-3e4fc30e97f4]]
|
||||
==View the [[ref:libraries/com/reference/index|EiffelCOM Class Reference]] ==
|
||||
|
||||
@@ -7,7 +7,7 @@ The EiffelCOM library includes the following clusters:
|
||||
* A [[Structures|Structures]] cluster includes wrappers for COM structures and additional data structures.
|
||||
* A [[ref:libraries/com/reference/index|Support]] cluster provides access to helper classes.
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
{{seealso|<br/>
|
||||
[[About COM and Eiffel]] <br/>
|
||||
[[EiffelCOM Wizard|EiffelCOM wizard]] }}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ COM interfaces have several facets. First, an interface is a deferred, or an abs
|
||||
|
||||
==ECOM_INTERFACE==
|
||||
|
||||
For each interface listed in a type library, the EiffelCOM wizard generates a deferred class and two effective classes: a proxy of an interface pointer, or a client side class, and a stub of an interface pointer, or a server side class. The deferred interface class inherits from <eiffel>[libraries/com/reference/ecom_interface_chart.xml| ECOM_INTERFACE ]</eiffel> and has a deferred feature per each interface function. Both effective classes, or implemented interfaces, inherit from the deferred class and implement its functions. The functions of the interface proxy calls the underlying C layer, which in turn calls the COM component while the functions of the interface stub implement the component functionality.
|
||||
For each interface listed in a type library, the EiffelCOM wizard generates a deferred class and two effective classes: a proxy of an interface pointer, or a client side class, and a stub of an interface pointer, or a server side class. The deferred interface class inherits from [[ref:libraries/com/reference/ecom_interface_chart|<eiffel>ECOM_INTERFACE</eiffel>]] and has a deferred feature per each interface function. Both effective classes, or implemented interfaces, inherit from the deferred class and implement its functions. The functions of the interface proxy calls the underlying C layer, which in turn calls the COM component while the functions of the interface stub implement the component functionality.
|
||||
|
||||
[[ref:libraries/com/reference/ecom_interface_chart|ECOM_INTERFACE]] holds a pointer to the underlying COM interface.
|
||||
|
||||
@@ -19,7 +19,7 @@ which queries a COM component internally. Every interface proxy class inherits f
|
||||
|
||||
==ECOM_STUB==
|
||||
|
||||
[[ref:libraries/com/reference/ecom_stub_chart|ECOM_STUB]] inherits from [[ref:libraries/com/reference/ecom_interface_chart|ECOM_INTERFACE]] , and exposes the feature <code> [[ref:libraries/com/reference/ecom_stub_chart|create_item]] </code> which allows creating the underlying COM object.
|
||||
[[ref:libraries/com/reference/ecom_stub_chart|ECOM_STUB]] inherits from [[ref:libraries/com/reference/ecom_interface_chart|ECOM_INTERFACE]], and exposes the feature [[ref:libraries/com/reference/ecom_stub_chart|<code>create_item</code>]] which allows creating the underlying COM object.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -92,22 +92,22 @@ Many COM Automation servers have routines that take arguments with default value
|
||||
|
||||
For example, the following adds a new workbook to Excel. The default argument tells Excel to decide for itself how many worksheets to put in the new workbook:
|
||||
<code>
|
||||
class
|
||||
MY_EXCEL_APPLICATION
|
||||
class
|
||||
MY_EXCEL_APPLICATION
|
||||
|
||||
inherit
|
||||
APPLICATION_PROXY
|
||||
inherit
|
||||
APPLICATION_PROXY
|
||||
|
||||
ECOM_VARIANT_ACCESS
|
||||
ECOM_VARIANT_ACCESS
|
||||
|
||||
feature
|
||||
feature
|
||||
|
||||
add_workbook is
|
||||
local
|
||||
workbook: WORKBOOK_PROXY
|
||||
do
|
||||
workbook := workbooks.add (missing, 0)
|
||||
end
|
||||
add_workbook is
|
||||
local
|
||||
workbook: WORKBOOK_PROXY
|
||||
do
|
||||
workbook := workbooks.add (missing, 0)
|
||||
end
|
||||
</code>
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ Platform: Windows <br/>
|
||||
|
||||
The EiffelCOM library provides support classes for the code generated by the EiffelCOM wizard. It has wrappings for standard COM data types such as VARIANT, SAFEARRAY, CURRENCY, DECIMAL, IUnknown, IDispatch, etc.
|
||||
|
||||
{{seealso| '''See Also''' <br/>
|
||||
{{seealso|<br/>
|
||||
[[EiffelCOM Wizard|EiffelCOM wizard]] }}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user