function.com-load-typelib.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 121 行

HTML
121
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Loads a Typelib</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.com-isenum.html">com_isenum</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.com-load.html">com_load</a></div> <div class="up"><a href="ref.com.html">COM Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.com-load-typelib" class="refentry"> <div class="refnamediv">  <h1 class="refname">com_load_typelib</h1>  <p class="verinfo">(PHP 4 &gt;= 4.0.7, PHP 5)</p><p class="refpurpose"><span class="refname">com_load_typelib</span> &mdash; <span class="dc-title">Loads a Typelib</span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">bool</span> <span class="methodname"><b><b>com_load_typelib</b></b></span>    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$typelib_name</tt></span>   [, <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$case_insensitive</tt></span>  ] )</div>  <p class="para rdfs-comment">   Loads a type-library and registers its constants in the engine, as though   they were defined using <a href="function.define.html" class="function">define()</a>.  </p>  <p class="para">   Note that it is much more efficient to use the <a href="com.configuration.html" class="xref">Runtime Configuration</a> configuration setting to pre-load and   register the constants, although not so flexible.  </p>  <p class="para">   If you have turned on <a href="com.configuration.html" class="xref">Runtime Configuration</a>, then   PHP will attempt to automatically register the constants associated with a   COM object when you instantiate it.  This depends on the interfaces   provided by the COM object itself, and may not always be possible.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">typelib_name</tt></i></span>     <dd>      <p class="para">       <i><tt class="parameter">typelib_name</tt></i> can be one of the following:       <ul class="itemizedlist">        <li class="listitem">         <p class="para">          The filename of a <i>.tlb</i> file or the executable module          that contains the type library.         </p>        </li>        <li class="listitem">         <p class="para">          The type library GUID, followed by its version number, for example          <i>{00000200-0000-0010-8000-00AA006D2EA4},2,0</i>.         </p>        </li>        <li class="listitem">         <p class="para">          The type library name, e.g. <i>Microsoft OLE DB ActiveX Data          Objects 1.0 Library</i>.         </p>        </li>       </ul>       PHP will attempt to resolve the type library in this order, as the       process gets more and more expensive as you progress down the list;       searching for the type library by name is handled by physically       enumerating the registry until we find a match.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">case_insensitive</tt></i></span>     <dd>      <p class="para">       The <i><tt class="parameter">case_insensitive</tt></i> behaves in the same way as       the parameter with the same name in the <a href="function.define.html" class="function">define()</a>       function.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure.  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.com-isenum.html">com_isenum</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.com-load.html">com_load</a></div> <div class="up"><a href="ref.com.html">COM Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

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