<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Подключить внешнюю библиотеку]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8111&amp;type=atom" />
	<updated>2013-02-28T12:32:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8111</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Подключить внешнюю библиотеку]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69827#p69827" />
			<content type="html"><![CDATA[<p>Спасибо. Осилил.<br />Нужно сразу было создавать объект NovellGroupWareSession.</p>]]></content>
			<author>
				<name><![CDATA[inionis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29719</uri>
			</author>
			<updated>2013-02-28T12:32:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69827#p69827</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Подключить внешнюю библиотеку]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=69826#p69826" />
			<content type="html"><![CDATA[<p>Есть код написанный на VBA, использующий в работе библиотеку Groupware Type Library<br />В VBA она подключена через tools-reference<br />Сильно упрощенный вариант кода для теста<br /></p><div class="codebox"><pre><code>
Privat ogwApp as GroupwiseTypeLibrary.Application
Privat ogwRoot as GroupwiseTypeLibrary.Account

Privat sub s()
set ogwApp = CreateObject(&quot;NovelGroupWareSession&quot;)
set ogwRoot = ogwApp.login()
msgbox ogwRoot.Owner
end sub
</code></pre></div><p>Подскажите можно ли его преобразовать в VBS или WSF скрипт<br />В моих попытках <br />WSF в теге object ругается на недопустимое значение progid<br /></p><div class="codebox"><pre><code>
&lt;reference guid=&quot;{E76....} /&gt;
&lt;object id=&quot;ogwApp&quot; progid=&quot;GroupwiseTypeLibrary.Application&quot; /&gt;
</code></pre></div><p>VBS не&nbsp; может создвать объект контейнером ActiveX</p><p>Подскажите как подключить правильно внешнюю dll</p>]]></content>
			<author>
				<name><![CDATA[inionis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29719</uri>
			</author>
			<updated>2013-02-28T11:33:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=69826#p69826</id>
		</entry>
</feed>
