<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>VB on Bits and Pieces</title>
		<link>https://bits.strawjackal.org/tags/vb/</link>
		<description>Recent content in VB on Bits and Pieces</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Fri, 22 Jul 2005 17:20:00 +0200</lastBuildDate>
		
			<atom:link href="https://bits.strawjackal.org/tags/vb/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>VB.NET and Enums</title>
				<link>https://bits.strawjackal.org/226/</link>
				<pubDate>Fri, 22 Jul 2005 17:20:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/226/</guid>
				<description>&lt;p&gt;I&#39;ve run into several problems with the way the VB.NET compiler handles enums. &lt;/p&gt; &lt;p&gt;I&#39;ve described one &lt;A href=&#34;http://weblogs.asp.net/avnerk/archive/2004/08/24/219102.aspx&#34;&gt;here&lt;/a&gt;, a while &lt;A href=&#34;http://weblogs.asp.net/avnerk/archive/2004/08/19/217174.aspx&#34;&gt;ago&lt;/a&gt;. In a nutshell, an enum exposed by SPS was based on the non-CLSCompliant UInt32 datatype, and VB.NET was choking on it during compilation.&lt;/p&gt; &lt;p&gt;The second one I ran into recently was when using the Enterprise Library to access an Oracle database. I was trying to create a paramater for an OracleCommandWrapper object. The AddParameter method has the following overloads:&lt;/p&gt;</description>
			</item>
			<item>
				<title>VB Build Events</title>
				<link>https://bits.strawjackal.org/250/</link>
				<pubDate>Fri, 03 Sep 2004 14:21:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/250/</guid>
				<description>&lt;p&gt;Having found myself developing in VB.NET alongside C# recently, I was rather annoyed at the lack of pre- and post-build-events for VB projects in VS.NET2003.&lt;/p&gt; &lt;p&gt;A quick check of the DTE automation model showed that while the .VBPROJ file schema does not enable persistently storing build event information for VB projects, the EnvDTE.Project object DOES enable you to specify that property, whether it&#39;s a C# or VB project - they just won&#39;t be persisted to the VBProj file.&lt;/p&gt;</description>
			</item>
			<item>
				<title>PortalRight - all wrong.</title>
				<link>https://bits.strawjackal.org/251/</link>
				<pubDate>Mon, 23 Aug 2004 21:01:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/251/</guid>
				<description>&lt;p&gt;A followup to &lt;A href=&#34;http://weblogs.asp.net/avnerk/archive/2004/08/19/217174.aspx&#34;&gt;this post&lt;/a&gt;:&lt;/p&gt; &lt;p&gt;The PortalRight enumeration defined in Microsoft.Sharepoint.Portal.Security is, for some reason, derived from UInt32 rather than Int32. You can see this in the Object Browser when in a VB.NET project. &lt;br /&gt;This anomaly - nothing more than a raised eyebrow in a C# project - seems to be crippling in a VB.NET project.&lt;br /&gt;Whenever I try to use this enum in code, the compiler claims that it can&#39;t cast from Integer to PortalRight - even I always use the enum:&lt;/p&gt;</description>
			</item>
			<item>
				<title>To CLS or not to CLS.</title>
				<link>https://bits.strawjackal.org/254/</link>
				<pubDate>Thu, 19 Aug 2004 16:40:00 +0200</pubDate>
				<guid>https://bits.strawjackal.org/254/</guid>
				<description>&lt;p&gt;For some reason, Sharepoint&#39;s object &lt;font face=&#34;&#34;&gt;model doesnt adher to Microsoft&#39;s recommended practices - namely, trying to keep your external interfaces CLS-compliant. &lt;/font&gt;&lt;/p&gt; &lt;p&gt;It seems the object model itself exposes several methods and properties that use the UInt32 data-type, even if the &lt;a href=&#34;http://msdn.microsoft.com/library/en-us/spptsdk/html/pAreaCollectionCount.asp&#34;&gt;SDK &lt;/a&gt;claims otherwise.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
