<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is it possible to create a standalone VB.Net desktop app using late binding of ArcObjects to avoid version dependencies that result from early binding? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-create-a-standalone-vb-net/m-p/141924#M3705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f4e79; font-size: 10pt;"&gt;I found the definitive answer at this link &lt;A href="http://resources.esri.com/help/9.3/arcgisdesktop/com/COM/IntroToCOM.htm"&gt;&lt;SPAN style="text-decoration: underline;"&gt;http://resources.esri.com/help/9.3/arcgisdesktop/com/COM/IntroToCOM.htm&lt;/SPAN&gt;&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f4e79; font-size: 10pt;"&gt;“The object classes within the ESRI object libraries do not implement the IDispatch interface; this means that these object libraries cannot be used with late-binding scripting languages, such as JavaScript or VBScript, since these languages require that all COM servers accessed support the IDispatch interface.”&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f4e79; font-size: 10pt;"&gt;Although I am not using a scripting language, the end result is the same: ArcObjects does not implement the IDispatch interface and therefore does not support late binding.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2016 12:49:14 GMT</pubDate>
    <dc:creator>ChristopherHeltzel</dc:creator>
    <dc:date>2016-09-28T12:49:14Z</dc:date>
    <item>
      <title>Is it possible to create a standalone VB.Net desktop app using late binding of ArcObjects to avoid version dependencies that result from early binding?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-create-a-standalone-vb-net/m-p/141923#M3704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a simple program that connects to a personal geodatabase to check various feature class properties. &amp;nbsp;Unfortunately the program cannot be installed on a client computer if it has a different version of ArcGIS Desktop than the one on my development computer (example: 10.3 on my computer and 10.2 or 10.4 on the client computer). &amp;nbsp;I want to use late binding so the&amp;nbsp;OneClick installation does not fail due to a different ArcGIS version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following early binding code works, but is version dependent:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Function OpenAccessWorkspace(ByVal sSourcePGDB as string) As ESRI.ArcGIS.Geodatabase.IWorkspace&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim aoFactory As IWorkspaceFactory&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim aoWorkspace As IWorkspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aoFactory = New ESRI.ArcGIS.DataSourcesGDB.AccessWorkspaceFactory&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;aoWorkspace = aoFactory.OpenFromFile(sSourcePGDB, 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Return aoWorkspace&lt;BR /&gt; End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This late binding code fails at line 5 when setting &lt;SPAN&gt;aoWorkspace with error&amp;nbsp;&lt;/SPAN&gt;NullReferenceException: Object reference not set to an instance of an object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Function OpenAccessWorkspace3(ByVal sSourcePGDB As String) As Object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim aoFactory As Object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim aoWorkspace As Object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;aoFactory = CreateObject("esriDataSourcesGDB.AccessWorkspaceFactory")&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;aoWorkspace = aoFactory.OpenFromFile(sSourcePGDB, 0) &amp;nbsp; &amp;nbsp; &amp;nbsp; ' ERROR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Return aoWorkspace&lt;BR /&gt; End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone confirm that it is possible to use late binding with ArcObjects? &amp;nbsp;If so, can you tell what I am doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 15:30:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-create-a-standalone-vb-net/m-p/141923#M3704</guid>
      <dc:creator>ChristopherHeltzel</dc:creator>
      <dc:date>2016-09-15T15:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a standalone VB.Net desktop app using late binding of ArcObjects to avoid version dependencies that result from early binding?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-create-a-standalone-vb-net/m-p/141924#M3705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f4e79; font-size: 10pt;"&gt;I found the definitive answer at this link &lt;A href="http://resources.esri.com/help/9.3/arcgisdesktop/com/COM/IntroToCOM.htm"&gt;&lt;SPAN style="text-decoration: underline;"&gt;http://resources.esri.com/help/9.3/arcgisdesktop/com/COM/IntroToCOM.htm&lt;/SPAN&gt;&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f4e79; font-size: 10pt;"&gt;“The object classes within the ESRI object libraries do not implement the IDispatch interface; this means that these object libraries cannot be used with late-binding scripting languages, such as JavaScript or VBScript, since these languages require that all COM servers accessed support the IDispatch interface.”&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #1f4e79; font-size: 10pt;"&gt;Although I am not using a scripting language, the end result is the same: ArcObjects does not implement the IDispatch interface and therefore does not support late binding.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 12:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-create-a-standalone-vb-net/m-p/141924#M3705</guid>
      <dc:creator>ChristopherHeltzel</dc:creator>
      <dc:date>2016-09-28T12:49:14Z</dc:date>
    </item>
  </channel>
</rss>

