news.html

来自「perl教程」· HTML 代码 · 共 492 行 · 第 1/3 页

HTML
492
字号
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../../displayToc.js"></script>
<script language="JavaScript" src="../../../tocParas.js"></script>
<script language="JavaScript" src="../../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../../scineplex.css">
<title>Win32::OLE::NEWS - What's new in Win32::OLE</title>
<link rel="stylesheet" href="../../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>

<body>

<script>writelinks('__top__',3);</script>
<h1><a>Win32::OLE::NEWS - What's new in Win32::OLE</a></h1>
<p><a name="__index__"></a></p>

<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#version_0_18">Version 0.18</a></li>
	<ul>

		<li><a href="#vt_cy_and_vt_decimal_return_values_handled_differently">VT_CY and VT_DECIMAL return values handled differently</a></li>
	</ul>

	<li><a href="#version_0_17">Version 0.17</a></li>
	<ul>

		<li><a href="#new_nullstring___function_in_win32__ole__variant">New <code>nullstring()</code> function in Win32::OLE::Variant</a></li>
	</ul>

	<li><a href="#version_0_16">Version 0.16</a></li>
	<ul>

		<li><a href="#improved_unicode_support">Improved Unicode support</a></li>
	</ul>

	<li><a href="#version_0_13">Version 0.13</a></li>
	<ul>

		<li><a href="#new_nothing___function_in_win32__ole__variant">New <code>nothing()</code> function in Win32::OLE::Variant</a></li>
		<li><a href="#new__newenum_and__unique_options">New _NewEnum and _Unique options</a></li>
	</ul>

	<li><a href="#version_0_12">Version 0.12</a></li>
	<ul>

		<li><a href="#additional_error_handling_functionality">Additional error handling functionality</a></li>
		<li><a href="#builtin_event_loop">Builtin event loop</a></li>
		<li><a href="#free_unused_ole_libraries">Free unused OLE libraries</a></li>
		<li><a href="#the_win32__ole_article_from_the_perl_journal__10">The &quot;Win32::OLE&quot; article from &quot;The Perl Journal #10&quot;</a></li>
		<li><a href="#variant_put___bug_fixes">VARIANT-&gt;<code>Put()</code> bug fixes</a></li>
		<li><a href="#error_message_fixes">Error message fixes</a></li>
		<li><a href="#vt_date_and_vt_error_return_values_handled_differently">VT_DATE and VT_ERROR return values handled differently</a></li>
	</ul>

	<li><a href="#version_0_11__changes_since_0_1008_">Version 0.11 (changes since 0.1008)</a></li>
	<ul>

		<li><a href="#new_dhtml_typelib_browser">new DHTML typelib browser</a></li>
		<li><a href="#vt_decimal_support">VT_DECIMAL support</a></li>
	</ul>

	<li><a href="#version_0_1008">Version 0.1008</a></li>
	<ul>

		<li><a href="#new_letproperty___object_method">new <code>LetProperty()</code> object method</a></li>
		<li><a href="#new_hresult___function">new <code>HRESULT()</code> function</a></li>
	</ul>

	<li><a href="#version_0_1007__changes_since_0_1005_">Version 0.1007 (changes since 0.1005)</a></li>
	<ul>

		<li><a href="#ole_event_support">OLE Event support</a></li>
		<li><a href="#getobject___and_getactiveobject___now_support_optional_destructor_argument"><code>GetObject()</code> and <code>GetActiveObject()</code> now support optional DESTRUCTOR argument</a></li>
		<li><a href="#remote_object_instantiation_via_dcom">Remote object instantiation via DCOM</a></li>
		<li><a href="#enumerate_all_win32__ole_objects">Enumerate all Win32::OLE objects</a></li>
		<li><a href="#the_variant_put___method_now_returns_the_variant_object_itself">The VARIANT-&gt;<code>Put()</code> method now returns the VARIANT object itself</a></li>
		<li><a href="#the_variant_put_arrayref__form_allows_assignment_to_a_complete_safearray">The VARIANT-&gt;<code>Put(ARRAYREF)</code> form allows assignment to a complete SAFEARRAY</a></li>
		<li><a href="#new_variant_formatting_methods">New Variant formatting methods</a></li>
		<li><a href="#new_win32__ole__nls_methods__sendsettingchange___and_setlocaleinfo__">new Win32::OLE::NLS methods: <code>SendSettingChange()</code> and <code>SetLocaleInfo()</code></a></li>
		<li><a href="#win32__ole__const_now_correctly_treats_version_numbers_as_hex">Win32::OLE::Const now correctly treats version numbers as hex</a></li>
		<li><a href="#more_robust_global_destruction_of_win32__ole_objects">more robust global destruction of Win32::OLE objects</a></li>
	</ul>

	<li><a href="#version_0_1005__changes_since_0_1003_">Version 0.1005 (changes since 0.1003)</a></li>
	<ul>

		<li><a href="#optional_destructor_for_getactiveobject___getobject___class_methods">optional DESTRUCTOR for <code>GetActiveObject()</code> <code>GetObject()</code> class methods</a></li>
		<li><a href="#new_variant_object_method___object_copy__">new Variant object method: $object-&gt;<code>Copy()</code></a></li>
		<li><a href="#new_win32__ole_option___class_method">new Win32::OLE-&gt;<code>Option()</code> class method</a></li>
	</ul>

</ul>
<!-- INDEX END -->

<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>Win32::OLE::NEWS - What's new in Win32::OLE</p>
<p>This file contains a history of user visible changes to the
Win32::OLE::* modules. Only new features and major bug fixes that
might affect backwards compatibility are included.</p>
<p>
</p>
<hr />
<h1><a name="version_0_18">Version 0.18</a></h1>
<p>
</p>
<h2><a name="vt_cy_and_vt_decimal_return_values_handled_differently">VT_CY and VT_DECIMAL return values handled differently</a></h2>
<p>The new <code>Variant</code> option enables values of VT_CY or VT_DECIMAL type
to be returned as Win32::OLE::Variant objects instead of being
converted into strings and numbers respectively.  This is similar to
the change in Win32::OLE version 0.12 to VT_DATE and VT_ERROR values.
The Win32::OLE::Variant module must be included to make sure that
VT_CY and VT_DECIMAL values behave as before in numeric or string
contexts.</p>
<p>Because the new behavior is potentially incompatible, it must be
explicitly enabled:</p>
<pre>
    <span class="variable">Win32::OLE</span><span class="operator">-&gt;</span><span class="variable">Option</span><span class="operator">(</span><span class="string">Variant</span> <span class="operator">=&gt;</span> <span class="number">1</span><span class="operator">);</span>
</pre>
<p>
</p>
<hr />
<h1><a name="version_0_17">Version 0.17</a></h1>
<p>
</p>
<h2><a name="new_nullstring___function_in_win32__ole__variant">New <code>nullstring()</code> function in Win32::OLE::Variant</a></h2>
<p>The <code>nullstring()</code> function returns a VT_BSTR variant containing a NULL
string pointer.  Note that this is not the same as a VT_BSTR variant
containing the empty string &quot;&quot;.</p>
<p>The <code>nullstring()</code> return value is equivalent to the Visual Basic
<code>vbNullString</code> constant.</p>
<p>
</p>
<hr />
<h1><a name="version_0_16">Version 0.16</a></h1>
<p>
</p>
<h2><a name="improved_unicode_support">Improved Unicode support</a></h2>
<p>Passing Unicode strings to methods and properties as well as returning
Unicode strings back to Perl works now with both Perl 5.6 and 5.8.
Note that the Unicode support in 5.8 is much more complete than in 5.6
or 5.6.1.</p>
<p><code>Unicode::String</code> objects can now be passed to methods or assigned to
properties.</p>
<p>You must enable Unicode support by switching Win32::OLE to the UTF8
codepage:</p>
<pre>
    <span class="variable">Win32::OLE</span><span class="operator">-&gt;</span><span class="variable">Option</span><span class="operator">(</span><span class="string">CP</span> <span class="operator">=&gt;</span> <span class="variable">Win32::OLE::CP_UTF8</span><span class="operator">());</span>
</pre>
<p>
</p>
<hr />
<h1><a name="version_0_13">Version 0.13</a></h1>

⌨️ 快捷键说明

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