<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>In, Out, In-Out, Make Up Your Mind Already</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/29/53117.aspx</link><description>I was talking about reference types vs. by-reference variables a while back. Recall that both JScript and VBScript have reference types (ie, objects) but JScript does not have by-reference variables. COM supports passing variable references around, but</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: In, Out, In-Out, Make Up Your Mind Already</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/29/53117.aspx#4059148</link><pubDate>Thu, 26 Jul 2007 12:16:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4059148</guid><dc:creator>Alok Pagariya</dc:creator><description>&lt;p&gt;Is there any way to open One Note 2007 application using VB script? I I tried this VB script&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;dim oneNote,pageStyle,importedPageID,unfiledPath,unfiledID&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set oNote = CreateObject(&amp;quot;OneNote.Application&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;oNote.GetSpecialLocation 1,unfiledPath&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;oNote.OpenHierarchy unfiledPath, &amp;quot;&amp;quot;, unfiledID, 0&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;oNote.CreateNewPage unfiledID,importedPageID, 0&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim xml2importBase 'As String&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xml2importBase = &amp;quot;&amp;lt;?xml version=&amp;quot;&amp;quot;1.0&amp;quot;&amp;quot;?&amp;gt;&amp;lt;one:Section xmlns:one=&amp;quot;&amp;quot;&lt;a rel="nofollow" target="_new" href="http://schemas.microsoft.com/office/onenote/2007/onenote&amp;quot;&amp;quot;"&gt;http://schemas.microsoft.com/office/onenote/2007/onenote&amp;quot;&amp;quot;&lt;/a&gt; ID=&amp;quot;&amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xml2importBase = xml2importBase + unfiledID + &amp;quot;&amp;quot;&amp;quot;&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xml2importBase = xml2importBase + &amp;quot;&amp;lt;one:Page ID=&amp;quot;&amp;quot;&amp;quot; + importedPageID + &amp;quot;&amp;quot;&amp;quot;&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xml2importBase = xml2importBase + &amp;quot;&amp;lt;one:Title&amp;gt;&amp;lt;one:OE&amp;gt;&amp;lt;one:T&amp;gt;&amp;lt;![CDATA[Title Comes here-2]]&amp;gt;&amp;lt;/one:T&amp;gt;&amp;lt;/one:OE&amp;gt;&amp;lt;/one:Title&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim tailXml &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tailXml = &amp;quot;&amp;lt;/one:Page&amp;gt;&amp;lt;/one:Section&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim xml2import &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xml2import = xml2importBase + tailXml&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;oNote.UpdateHierarchy xml2import&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;oNote.NavigateTo importedPageID, &amp;quot;&amp;quot;, False&lt;/p&gt;
&lt;p&gt;I know we cant send out parameter in the VB script.&lt;/p&gt;
&lt;p&gt;So IS there any way to overcome this problem and make this script run?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4059148" width="1" height="1"&gt;</description></item><item><title>re: In, Out, In-Out, Make Up Your Mind Already</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/29/53117.aspx#1974625</link><pubDate>Wed, 28 Mar 2007 13:28:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1974625</guid><dc:creator>fugu5</dc:creator><description>&lt;p&gt;Pff... I DID write my own IDispatch and IDispatchEx implementation, so that we can use class constructors, default parameter values, case sensitive name resolution etc. It was fun ;)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1974625" width="1" height="1"&gt;</description></item><item><title>re: In, Out, In-Out, Make Up Your Mind Already</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/29/53117.aspx#529410</link><pubDate>Fri, 10 Feb 2006 15:19:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:529410</guid><dc:creator>deepmala</dc:creator><description>By reading this article i think because of this only i am getting a Type mismatch error for Server.CreateObject method. as i am passing class name like : Cstr(strComponentName) &amp;amp; &amp;quot;.clsMain&amp;quot;. But CreateObject is a method of Server object. is it the same case with this object also? Also it works for some time but some time it gives Type mismatch error only when there is less RAM available.&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=529410" width="1" height="1"&gt;</description></item><item><title>re: In, Out, In-Out, Make Up Your Mind Already</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/29/53117.aspx#161663</link><pubDate>Mon, 21 Jun 2004 19:51:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:161663</guid><dc:creator>SpaceGoblin</dc:creator><description>This is awesome. It's an extremely useful article. It explains what happens and WHY!&lt;br&gt;Thanks, dude!&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=161663" width="1" height="1"&gt;</description></item><item><title>More On ByRef vs ByVal</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/29/53117.aspx#127269</link><pubDate>Thu, 06 May 2004 20:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:127269</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>It occurs to me that there may be some confusion about what exactly &lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=127269" width="1" height="1"&gt;</description></item><item><title>re: Aaargh, Part Six: One More Thing About Comments</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/29/53117.aspx#127263</link><pubDate>Thu, 06 May 2004 20:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:127263</guid><dc:creator>Fabulous Adventures In Coding</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=127263" width="1" height="1"&gt;</description></item><item><title>re: In, Out, In-Out, Make Up Your Mind Already</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/29/53117.aspx#90162</link><pubDate>Tue, 16 Mar 2004 01:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:90162</guid><dc:creator>Hongzter</dc:creator><description>hey man, thanks for writing this article. i was stuck with this [in,out] bstr* problem for so long cos i simply can't understand why it works in VB but not VBScript. you're the man!! &lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=90162" width="1" height="1"&gt;</description></item><item><title>RE: In, Out, In-Out, Make Up Your Mind Already</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/29/53117.aspx#53119</link><pubDate>Tue, 30 Sep 2003 12:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:53119</guid><dc:creator>Stephen Sulzer</dc:creator><description>I recall there was a motivation for writing your own IDispatch implementation: a lock contention problem with the OLEAUT-provided IDispatch. This affected scalability of Automation components used in server-based applications. I don't know if this problem was ever addressed. If it wasn't, then an article describing the Joy of IDispatch would be useful. (Although I hope I never have to write another IDispatch again in my life.)

An MSDN article circa 2000 mentions the OLEAUT scalability issue:  

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnduwcol/html/sampleapp04202000.asp
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=53119" width="1" height="1"&gt;</description></item><item><title>RE: In, Out, In-Out, Make Up Your Mind Already</title><link>http://blogs.msdn.com/b/ericlippert/archive/2003/09/29/53117.aspx#53118</link><pubDate>Tue, 30 Sep 2003 10:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:53118</guid><dc:creator>Pavel</dc:creator><description>This the best description of the interaction between script clients and COM objects I've ever seen.

Would have been nice if this stuff was documented in MSDN 5 years ago :)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=53118" width="1" height="1"&gt;</description></item></channel></rss>