<?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: VB6 error initializing Acad in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/vb6-error-initializing-acad/m-p/345173#M80264</link>
    <description>"Tim Dear" &lt;TIMD&gt; wrote in message&lt;BR /&gt;
news:3D995E23A3B89B9446943D81C70912F3@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Why do the following lines of code return an error in VB6 when I use them&lt;BR /&gt;
as&lt;BR /&gt;
&amp;gt; stated in the help files? By the way, I am using LDD2i.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Dim appAcad as AcadApplication&lt;BR /&gt;
&amp;gt; Dim objAcadMap as AcadMap&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Set appAcad = GetObject(, "Acad.Application")&lt;BR /&gt;
&amp;gt; set objAcadMap as appAcad.GetInterfaceObject("AutoCADMap.Application")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
Hello Tim,&lt;BR /&gt;
&lt;BR /&gt;
It looks like your running into the early binding&lt;BR /&gt;
issue in the Map Automation Library.&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately, the Map Library only supports&lt;BR /&gt;
early binding from within Acad VBA.  For VB&lt;BR /&gt;
you must declare all of the Map objects using&lt;BR /&gt;
late binding...&lt;BR /&gt;
&lt;BR /&gt;
In other words, declare all Map objects as Object.&lt;BR /&gt;
&lt;BR /&gt;
    Dim objAcadMap as Object&lt;BR /&gt;
&lt;BR /&gt;
Cheers-&lt;BR /&gt;
&lt;BR /&gt;
rdh.&lt;/TIMD&gt;</description>
    <pubDate>Mon, 15 Oct 2001 09:09:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2001-10-15T09:09:03Z</dc:date>
    <item>
      <title>VB6 error initializing Acad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vb6-error-initializing-acad/m-p/345172#M80263</link>
      <description>Why do the following lines of code return an error in VB6 when I use them as&lt;BR /&gt;
stated in the help files? By the way, I am using LDD2i.&lt;BR /&gt;
&lt;BR /&gt;
Dim appAcad as AcadApplication&lt;BR /&gt;
Dim objAcadMap as AcadMap&lt;BR /&gt;
&lt;BR /&gt;
Set appAcad = GetObject(, "Acad.Application")&lt;BR /&gt;
set objAcadMap as appAcad.GetInterfaceObject("AutoCADMap.Application")</description>
      <pubDate>Mon, 15 Oct 2001 08:25:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vb6-error-initializing-acad/m-p/345172#M80263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-10-15T08:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: VB6 error initializing Acad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vb6-error-initializing-acad/m-p/345173#M80264</link>
      <description>"Tim Dear" &lt;TIMD&gt; wrote in message&lt;BR /&gt;
news:3D995E23A3B89B9446943D81C70912F3@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Why do the following lines of code return an error in VB6 when I use them&lt;BR /&gt;
as&lt;BR /&gt;
&amp;gt; stated in the help files? By the way, I am using LDD2i.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Dim appAcad as AcadApplication&lt;BR /&gt;
&amp;gt; Dim objAcadMap as AcadMap&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Set appAcad = GetObject(, "Acad.Application")&lt;BR /&gt;
&amp;gt; set objAcadMap as appAcad.GetInterfaceObject("AutoCADMap.Application")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
Hello Tim,&lt;BR /&gt;
&lt;BR /&gt;
It looks like your running into the early binding&lt;BR /&gt;
issue in the Map Automation Library.&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately, the Map Library only supports&lt;BR /&gt;
early binding from within Acad VBA.  For VB&lt;BR /&gt;
you must declare all of the Map objects using&lt;BR /&gt;
late binding...&lt;BR /&gt;
&lt;BR /&gt;
In other words, declare all Map objects as Object.&lt;BR /&gt;
&lt;BR /&gt;
    Dim objAcadMap as Object&lt;BR /&gt;
&lt;BR /&gt;
Cheers-&lt;BR /&gt;
&lt;BR /&gt;
rdh.&lt;/TIMD&gt;</description>
      <pubDate>Mon, 15 Oct 2001 09:09:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vb6-error-initializing-acad/m-p/345173#M80264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-10-15T09:09:03Z</dc:date>
    </item>
  </channel>
</rss>

