Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > dd8ef74e7a184506d40e4328053fb785 > files > 3810

php-manual-ro-20051028-1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>COM and .Net (Windows)</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Documentaþia funcþiilor"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="ccvs_void"
HREF="function.ccvs-void.html"><LINK
REL="NEXT"
TITLE="COM"
HREF="class.com.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-2"></HEAD
><BODY
CLASS="reference"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.ccvs-void.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="class.com.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.com"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>VIII. COM and .Net (Windows)</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN9719"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="com.intro"
>Introducere</A
></H1
><P
>&#13;     COM is an acronym for Component Object Model; it is an object orientated
     layer (and associated services) on top of DCE RPC (an open standard) and
     defines a common calling convention that enables code written in any
     language to call and interoperate with code written in any other language
     (provided those languages are COM aware).  Not only can the code be
     written in any language, but it need not even be part of the same
     executable; the code can be loadaed from a DLL, be found in another
     process running on the same machine, or, with DCOM (Distributed COM), be
     found in another process on a remote machine, all without your code even
     needing to know where a component resides.
    </P
><P
>&#13;     There is a subset of COM known as OLE Automation which comprises a set of
     COM interfaces that allow loose binding to COM objects, so that they can
     be introspected and called at run-time without compile-time knowledge of
     how the object works.  The PHP COM extension utilitizes the OLE
     Automation interfaces to allow you to create and call compatible objects
     from your scripts.  Technically speaking, this should really be called
     the "OLE Automation Extension for PHP", since not all COM objects are OLE
     compatible.
    </P
><P
>&#13;     Now, why would or should you use COM?  COM is one of the main ways to glue
     applications and components together on the Windows platform; using COM
     you can launch Microsoft Word, fill in a document template and save the
     result as a Word document and send it to a visitor of your web site.  You
     can also use COM to perform administrative tasks for your network and to
     configure your IIS; these are just the most common uses; you can do much
     more with COM.
    </P
><P
>&#13;     Starting with PHP 5, this extension (and this documentation) was
     rewritten from scratch and much of the old confusing and bogus cruft has
     be removed.  Additionally, we support the instantiation and creation of
     .Net assemblies using the COM interoperability layer provided by
     Microsoft.
    </P
><P
> 
     Please read <A
HREF="http://www.zend.com/php5/articles/php5-dotnet.php"
TARGET="_top"
>this article</A
>
     for an overview of the changes in this extension in PHP 5.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="com.requirements"
>Necesitãþi</A
></H1
><P
>&#13;     COM functions are only available for the Windows version of PHP.
    </P
><P
>&#13;     .Net support requires PHP 5 and the .Net runtime.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="com.installation"
>Instalare</A
></H1
><P
>Nu este necesarã o instalare a acestor funcþii,
ele fac parte din PHP.</P
><P
> The windows version of <VAR
CLASS="literal"
>PHP</VAR
>
has built in support for this extension. You do not need to load any additional
extension in order to use these functions.</P
><P
>&#13;     You are responsible for installing support for the various COM objects
     that you intend to use (such as MS Word); we don't and can't bundle all
     of those with PHP.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="com.foreach"
>For Each</A
></H1
><P
>&#13;     Starting with PHP 5, you may use PHP's own <A
HREF="control-structures.foreach.html"
>sec. numitã <I
><VAR
CLASS="literal"
>foreach</VAR
></I
> în Cap. 11</A
> statement to iterate
     over the contents of a standard COM/OLE IEnumVariant.  In laymans terms,
     this means that you can use foreach in places where you would have used
     <VAR
CLASS="literal"
>For Each</VAR
> in VB/ASP code.
    </P
><P
>&#13;    <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN9744"
></A
><P
><B
>Exemplu 1. For Each in ASP</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="asp"
>&#60;%
Set domainObject = GetObject("WinNT://Domain")
For Each obj in domainObject
  Response.Write obj.Name &#38; "&#60;br /&#62;"
Next
%&#62;</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
   </P
><P
>&#13;    <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN9748"
></A
><P
><B
>Exemplu 2. while() ... Next() in PHP 4</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php <br />$domainObject </font><font color="#007700">= new </font><font color="#0000BB">COM</font><font color="#007700">(</font><font color="#DD0000">"WinNT://Domain"</font><font color="#007700">); <br />while (</font><font color="#0000BB">$obj </font><font color="#007700">= </font><font color="#0000BB">$domainObject</font><font color="#007700">-&gt;</font><font color="#0000BB">Next</font><font color="#007700">()) { <br />&nbsp;&nbsp;&nbsp;echo </font><font color="#0000BB">$obj</font><font color="#007700">-&gt;</font><font color="#0000BB">Name </font><font color="#007700">. </font><font color="#DD0000">"&lt;br /&gt;"</font><font color="#007700">; <br />} <br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
   </P
><P
>&#13;    <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN9752"
></A
><P
><B
>Exemplu 3. foreach in PHP 5</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php <br />$domainObject </font><font color="#007700">= new </font><font color="#0000BB">COM</font><font color="#007700">(</font><font color="#DD0000">"WinNT://Domain"</font><font color="#007700">); <br />foreach (</font><font color="#0000BB">$domainObject </font><font color="#007700">as </font><font color="#0000BB">$obj</font><font color="#007700">) { <br />&nbsp;&nbsp;&nbsp;echo </font><font color="#0000BB">$obj</font><font color="#007700">-&gt;</font><font color="#0000BB">Name </font><font color="#007700">. </font><font color="#DD0000">"&lt;br /&gt;"</font><font color="#007700">; <br />} <br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
   </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="com.arrays"
>Arrays and Array-style COM properties</A
></H1
><P
>&#13;     Many COM objects expose their properties as arrays, or using array-style
     access.  In PHP 4, you may use PHP array syntax to read/write such a
     property, but only a single dimension is allowed.  If  you want to read a
     multi-dimensional property, you could instead make the property access
     into a function call, with each parameter representing each dimension of
     the array access, but there is no way to write to such a property.
    </P
><P
>&#13;     PHP 5 introduces the following new features to make your life easier:

     <P
></P
><UL
><LI
><P
>&#13;        Access multi-dimensional arrays, or COM properties that require
        multiple parameters using PHP array syntax.  You can also write or set
        properties using this technique.
       </P
></LI
><LI
><P
>&#13;        Iterate SafeArrays ("true" arrays) using the <A
HREF="control-structures.foreach.html"
>sec. numitã <I
><VAR
CLASS="literal"
>foreach</VAR
></I
> în Cap. 11</A
> control structure.  This works
        because SafeArrays include information about their size.  If an
        array-style property implements IEnumVariant then you can also use
        foreach for that property too; take a look at <A
HREF="ref.com.html#com.foreach"
>sec. numitã <I
>For Each</I
></A
> for more information on this topic.
       </P
></LI
></UL
>
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="com.exceptions"
>Exceptions (PHP 5)</A
></H1
><P
>&#13;     This extension will throw instances of the class <VAR
CLASS="literal"
>com_exception</VAR
>
     whenever there is a potentially fatal error reported by COM.  All
     COM exceptions have a well-defined <VAR
CLASS="literal"
>code</VAR
> property that
     corresponds to the HRESULT return value from the various COM operations.
     You may use this code to make programmatic decisions on how to handle the
     exception.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="com.configuration"
>Configurare la rulare</A
></H1
><P
>&#13;The behaviour of these functions is affected by settings in <TT
CLASS="filename"
>php.ini</TT
>.
</P
><P
>&#13; <DIV
CLASS="table"
><A
NAME="AEN9776"
></A
><P
><B
>Tabel 1. Com configuration options</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><COL><THEAD
><TR
><TH
>Name</TH
><TH
>Default</TH
><TH
>Changeable</TH
></TR
></THEAD
><TBODY
><TR
><TD
>com.allow_dcom</TD
><TD
>"0"</TD
><TD
>PHP_INI_SYSTEM</TD
></TR
><TR
><TD
>com.autoregister_typelib</TD
><TD
>"0"</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>com.autoregister_verbose</TD
><TD
>"0"</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>com.autoregister_casesensitive</TD
><TD
>"1"</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>com.code_page</TD
><TD
>""</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>com.typelib_file</TD
><TD
>""</TD
><TD
>PHP_INI_SYSTEM</TD
></TR
></TBODY
></TABLE
></DIV
>
 For further details and definition of the PHP_INI_* constants see
 <A
HREF="function.ini-set.html"
><B
CLASS="function"
>ini_set()</B
></A
>.
 </P
><P
>Here's a short explanation of
the configuration directives.</P
><P
>&#13;  <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><A
NAME="ini.com.allow-dcom"
></A
><VAR
CLASS="parameter"
>com.allow_dcom</VAR
></DT
><DD
><P
>&#13;     When this is turned on, PHP will be allowed to operate as a D-COM
     (Distributed COM) client and will allow the PHP script to instantiate
     COM objects on a remote server.
    </P
></DD
><DT
><A
NAME="ini.com.autoregister-typelib"
></A
><VAR
CLASS="parameter"
>com.autoregister_typelib</VAR
></DT
><DD
><P
>&#13;     When this is turned on, PHP will attempt to register constants from
     the typelibrary of objects that it instantiates, if those objects
     implement the interfaces required to obtain that information.
     The case sensitivity of the constants it registers is controlled by the
     <A
HREF="ref.com.html#ini.com.autoregister-casesensitive"
><I
CLASS="term"
>&#13;     <VAR
CLASS="parameter"
>com.autoregister_casesensitive</VAR
>
    </I
></A
> configuration directive.
    </P
></DD
><DT
><A
NAME="ini.com.autoregister-verbose"
></A
><VAR
CLASS="parameter"
>com.autoregister_verbose</VAR
></DT
><DD
><P
>&#13;     When this is turned on, any problems with loading a typelibrary during
     object instantiation will be reported using the PHP error mechanism.
     The default is off, which does not emit any indication if there was
     an error finding or loading the type library.
    </P
></DD
><DT
><A
NAME="ini.com.autoregister-casesensitive"
></A
><VAR
CLASS="parameter"
>com.autoregister_casesensitive</VAR
></DT
><DD
><P
>&#13;     When this is turned on (the default), constants found in auto-loaded
     type libraries will be registered case sensitively.  See
     <A
HREF="function.com-load-typelib.html"
><B
CLASS="function"
>com_load_typelib()</B
></A
> for more details.
    </P
></DD
><DT
><A
NAME="ini.com.code-page"
></A
><VAR
CLASS="parameter"
>com.code_page</VAR
></DT
><DD
><P
>&#13;     It controls the default character set code-page to use when passing
     strings to and from COM objects.  If set to an empty string, PHP will
     assume that you want <TT
CLASS="constant"
><B
>CP_ACP</B
></TT
>, which is the default
     system ANSI code page.
    </P
><P
>&#13;     If the text in your scripts is encoded using a different
     encoding/character set by default, setting this directive will save you
     from having to pass the code page as a parameter to the <A
HREF="class.com.html"
>COM</A
> class constructor.  Please note that by
     using this directive (as with any PHP configuration directive), your PHP
     script becomes less portable; you should use the COM constructor parameter
     whenever possible.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Not&#227;: </B
>
      This configuration directive was introduced with PHP 5.
     </P
></BLOCKQUOTE
></DIV
></DD
><DT
><A
NAME="ini.com.typelib-file"
></A
><VAR
CLASS="parameter"
>com.typelib_file</VAR
></DT
><DD
><P
>&#13;     When set, this should hold the path to a file that contains a list
     of typelibraries that should be loaded on startup.  Each line of
     the file will be treated as the type library name and loaded as
     though you had called <A
HREF="function.com-load-typelib.html"
><B
CLASS="function"
>com_load_typelib()</B
></A
>.
     The constants will be registered persistently, so that the library
     only needs to be loaded once.  If a type library name ends with the
     string <VAR
CLASS="literal"
>#cis</VAR
> or <VAR
CLASS="literal"
>#case_insensitive</VAR
>,
     then the constants from that library will be registered case
     insensitively.
    </P
></DD
></DL
></DIV
>
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="com.constants"
>Constante predefinite</A
></H1
><P
>&#13;Aceste constante sunt definite de aceastã extensie ºi
vor fi disponibile doar cînd extensia a fost fie
compilatã odatã la instalarea PHP fie dacã extensia este încãrcatã
dinamic la rulare.</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>CLSCTX_INPROC_SERVER</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CLSCTX_INPROC_HANDLER</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CLSCTX_LOCAL_SERVER</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CLSCTX_REMOTE_SERVER</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CLSCTX_SERVER</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CLSCTX_ALL</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_NULL</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_EMPTY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_UI1</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_I2</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_I4</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_R4</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_R8</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_BOOL</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_ERROR</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_CY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_DATE</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_BSTR</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_DECIMAL</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_UNKNOWN</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_DISPATCH</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_VARIANT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_I1</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_UI2</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_UI4</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_INT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_UINT</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_ARRAY</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VT_BYREF</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CP_ACP</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CP_MACCP</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CP_OEMCP</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CP_UTF7</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CP_UTF8</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CP_SYMBOL</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>CP_THREAD_ACP</B
></TT
> 
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>VARCMP_LT</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>VARCMP_EQ</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>VARCMP_GT</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>VARCMP_NULL</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>NORM_IGNORECASE</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>NORM_IGNORENONSPACE</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>NORM_IGNORESYMBOLS</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>NORM_IGNOREWIDTH</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>NORM_IGNOREKANATYPE</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>NORM_IGNOREKASHIDA</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>DISP_E_DIVBYZERO</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>DISP_E_OVERFLOW</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>MK_E_UNAVAILABLE</B
></TT
> (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="com.seealso"
>Vezi, de asemenea,</A
></H1
><P
>&#13;     For further information on COM read the <A
HREF="http://www.microsoft.com/Com/resources/comdocs.asp"
TARGET="_top"
>COM
     specification</A
> or perhaps take a look at Don Box's 
     <A
HREF="http://www.develop.com/essentialcom/sources/YACL.htm"
TARGET="_top"
>Yet Another COM Library (YACL)</A
>.
     You might find some additional useful information in our FAQ for <A
HREF="faq.com.html"
>Cap. 54</A
>.
     If you're thinking of using MS Office applications on the server side,
     you should read the information here: <A
HREF="http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757"
TARGET="_top"
>Considerations for Server-Side Automation
     of Office</A
>.
    </P
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Cuprins</B
></DT
><DT
><A
HREF="class.com.html"
>COM</A
>&nbsp;--&nbsp;COM class</DT
><DT
><A
HREF="class.dotnet.html"
>DOTNET</A
>&nbsp;--&nbsp;DOTNET class</DT
><DT
><A
HREF="class.variant.html"
>VARIANT</A
>&nbsp;--&nbsp;VARIANT class</DT
><DT
><A
HREF="function.com-addref.html"
>com_addref</A
>&nbsp;--&nbsp;
    Increases the components reference counter [deprecated]
   </DT
><DT
><A
HREF="function.com-create-guid.html"
>com_create_guid</A
>&nbsp;--&nbsp;
     Generate a globally unique identifier (GUID)
    </DT
><DT
><A
HREF="function.com-event-sink.html"
>com_event_sink</A
>&nbsp;--&nbsp;
     Connect events from a COM object to a PHP object
    </DT
><DT
><A
HREF="function.com-get-active-object.html"
>com_get_active_object</A
>&nbsp;--&nbsp;
     Returns a handle to an already running instance of a COM object
    </DT
><DT
><A
HREF="function.com-get.html"
>com_get</A
>&nbsp;--&nbsp;
    Gets the value of a COM Component's property [deprecated]
   </DT
><DT
><A
HREF="function.com-invoke.html"
>com_invoke</A
>&nbsp;--&nbsp;
    Calls a COM component's method [deprecated]
   </DT
><DT
><A
HREF="function.com-isenum.html"
>com_isenum</A
>&nbsp;--&nbsp;Indicates if a COM object has an IEnumVariant interface for iteration [deprecated]</DT
><DT
><A
HREF="function.com-load-typelib.html"
>com_load_typelib</A
>&nbsp;--&nbsp;Loads a Typelib</DT
><DT
><A
HREF="function.com-load.html"
>com_load</A
>&nbsp;--&nbsp;
    Creates a new reference to a COM component [deprecated]
   </DT
><DT
><A
HREF="function.com-message-pump.html"
>com_message_pump</A
>&nbsp;--&nbsp;
     Process COM messages, sleeping for up to timeoutms milliseconds
    </DT
><DT
><A
HREF="function.com-print-typeinfo.html"
>com_print_typeinfo</A
>&nbsp;--&nbsp;
     Print out a PHP class definition for a dispatchable interface
    </DT
><DT
><A
HREF="function.com-propget.html"
>com_propget</A
>&nbsp;--&nbsp;Alias of <A
HREF="function.com-get.html"
><B
CLASS="function"
>com_get()</B
></A
></DT
><DT
><A
HREF="function.com-propput.html"
>com_propput</A
>&nbsp;--&nbsp;Alias of <A
HREF="function.com-set.html"
><B
CLASS="function"
>com_set()</B
></A
></DT
><DT
><A
HREF="function.com-propset.html"
>com_propset</A
>&nbsp;--&nbsp;Alias of <A
HREF="function.com-set.html"
><B
CLASS="function"
>com_set()</B
></A
></DT
><DT
><A
HREF="function.com-release.html"
>com_release</A
>&nbsp;--&nbsp;
    Decreases the components reference counter [deprecated]
   </DT
><DT
><A
HREF="function.com-set.html"
>com_set</A
>&nbsp;--&nbsp;
    Assigns a value to a COM component's property
   </DT
><DT
><A
HREF="function.variant-abs.html"
>variant_abs</A
>&nbsp;--&nbsp;
     Returns the absolute value of a variant
    </DT
><DT
><A
HREF="function.variant-add.html"
>variant_add</A
>&nbsp;--&nbsp;
     "Adds" two variant values together and returns the result
    </DT
><DT
><A
HREF="function.variant-and.html"
>variant_and</A
>&nbsp;--&nbsp;
     performs a bitwise AND operation between two variants and returns the result
    </DT
><DT
><A
HREF="function.variant-cast.html"
>variant_cast</A
>&nbsp;--&nbsp;
     Convert a variant into a new variant object of another type
    </DT
><DT
><A
HREF="function.variant-cat.html"
>variant_cat</A
>&nbsp;--&nbsp;
     concatenates two variant values together and returns the result
    </DT
><DT
><A
HREF="function.variant-cmp.html"
>variant_cmp</A
>&nbsp;--&nbsp;
     Compares two variants
    </DT
><DT
><A
HREF="function.variant-date-from-timestamp.html"
>variant_date_from_timestamp</A
>&nbsp;--&nbsp;
     Returns a variant date representation of a unix timestamp
    </DT
><DT
><A
HREF="function.variant-date-to-timestamp.html"
>variant_date_to_timestamp</A
>&nbsp;--&nbsp;
     Converts a variant date/time value to unix timestamp
    </DT
><DT
><A
HREF="function.variant-div.html"
>variant_div</A
>&nbsp;--&nbsp;
     Returns the result from dividing two variants
    </DT
><DT
><A
HREF="function.variant-eqv.html"
>variant_eqv</A
>&nbsp;--&nbsp;
     Performs a bitwise equivalence on two variants
    </DT
><DT
><A
HREF="function.variant-fix.html"
>variant_fix</A
>&nbsp;--&nbsp;
     Returns the integer portion ? of a variant
    </DT
><DT
><A
HREF="function.variant-get-type.html"
>variant_get_type</A
>&nbsp;--&nbsp;Returns the type of a variant object</DT
><DT
><A
HREF="function.variant-idiv.html"
>variant_idiv</A
>&nbsp;--&nbsp;
     Converts variants to integers and then returns the result from dividing them
    </DT
><DT
><A
HREF="function.variant-imp.html"
>variant_imp</A
>&nbsp;--&nbsp;
     Performs a bitwise implication on two variants
    </DT
><DT
><A
HREF="function.variant-int.html"
>variant_int</A
>&nbsp;--&nbsp;
     Returns the integer portion of a variant
    </DT
><DT
><A
HREF="function.variant-mod.html"
>variant_mod</A
>&nbsp;--&nbsp;
     Divides two variants and returns only the remainder
    </DT
><DT
><A
HREF="function.variant-mul.html"
>variant_mul</A
>&nbsp;--&nbsp;
     multiplies the values of the two variants and returns the result
    </DT
><DT
><A
HREF="function.variant-neg.html"
>variant_neg</A
>&nbsp;--&nbsp;
     Performs logical negation on a variant
    </DT
><DT
><A
HREF="function.variant-not.html"
>variant_not</A
>&nbsp;--&nbsp;
     Performs bitwise not negation on a variant
    </DT
><DT
><A
HREF="function.variant-or.html"
>variant_or</A
>&nbsp;--&nbsp;
     Performs a logical disjunction on two variants
    </DT
><DT
><A
HREF="function.variant-pow.html"
>variant_pow</A
>&nbsp;--&nbsp;
     Returns the result of performing the power function with two variants
    </DT
><DT
><A
HREF="function.variant-round.html"
>variant_round</A
>&nbsp;--&nbsp;
     Rounds a variant to the specified number of decimal places
    </DT
><DT
><A
HREF="function.variant-set-type.html"
>variant_set_type</A
>&nbsp;--&nbsp;
     Convert a variant into another type. Variant is modified "in-place"
    </DT
><DT
><A
HREF="function.variant-set.html"
>variant_set</A
>&nbsp;--&nbsp;
     Assigns a new value for a variant object
    </DT
><DT
><A
HREF="function.variant-sub.html"
>variant_sub</A
>&nbsp;--&nbsp;
     subtracts the value of the right variant from the left variant value and returns the result
    </DT
><DT
><A
HREF="function.variant-xor.html"
>variant_xor</A
>&nbsp;--&nbsp;
     Performs a logical exclusion on two variants
    </DT
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.ccvs-void.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Acas&#227;</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="class.com.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>ccvs_void</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>COM</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>