<?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: ActiveX DLL loading in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/activex-dll-loading/m-p/300990#M67116</link>
    <description>Try this instead.&lt;BR /&gt;
&lt;BR /&gt;
(setq *Application* (vlax-get-acad-object))&lt;BR /&gt;
(setq obj (vla-getinterfaceobject *Application* "Steel.StlUtil"))&lt;BR /&gt;
&lt;BR /&gt;
You may also want to note that vlax-invoke-method does not appear to work.&lt;BR /&gt;
Instead, use vlax-invoke.&lt;BR /&gt;
&lt;BR /&gt;
I believe the latter method has been deprecated, but since it is the only&lt;BR /&gt;
one I can get to work, it is what I use.&lt;BR /&gt;
&lt;BR /&gt;
Chuck&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Lenny Louque" &lt;JJP&gt; wrote in message&lt;BR /&gt;
news:BA85E0E3CA4B3718FDE0708E1A2D8C39@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I am having a problem getting my ActiveX DLL to load. I am using the&lt;BR /&gt;
&amp;gt; following code:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (setq obj (vlax-create-object "Steel.StlUtil"))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; My file is called Steel.dll and i have 2 seperate class files:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Channel(channelform.cls)&lt;BR /&gt;
&amp;gt; StlUtil(utilities.cls)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; when I run this code all I get is NIL after.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The dll file works fine when I refenence it inside a Visual Basic EXE&lt;BR /&gt;
&amp;gt; program.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any help will be appricated&lt;BR /&gt;
&amp;gt; I am new at ActiveX and this my first attempt at this.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I am going to post the DLL fine in customer files NG.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Lenny&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JJP&gt;</description>
    <pubDate>Mon, 06 Jan 2003 04:45:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-01-06T04:45:07Z</dc:date>
    <item>
      <title>ActiveX DLL loading</title>
      <link>https://forums.autodesk.com/t5/vba-forum/activex-dll-loading/m-p/300989#M67115</link>
      <description>I am having a problem getting my ActiveX DLL to load. I am using the&lt;BR /&gt;
following code:&lt;BR /&gt;
&lt;BR /&gt;
(setq obj (vlax-create-object "Steel.StlUtil"))&lt;BR /&gt;
&lt;BR /&gt;
My file is called Steel.dll and i have 2 seperate class files:&lt;BR /&gt;
&lt;BR /&gt;
Channel(channelform.cls)&lt;BR /&gt;
StlUtil(utilities.cls)&lt;BR /&gt;
&lt;BR /&gt;
when I run this code all I get is NIL after.&lt;BR /&gt;
&lt;BR /&gt;
The dll file works fine when I refenence it inside a Visual Basic EXE&lt;BR /&gt;
program.&lt;BR /&gt;
&lt;BR /&gt;
Any help will be appricated&lt;BR /&gt;
I am new at ActiveX and this my first attempt at this.&lt;BR /&gt;
&lt;BR /&gt;
I am going to post the DLL fine in customer files NG.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
&lt;BR /&gt;
Lenny</description>
      <pubDate>Sun, 05 Jan 2003 18:10:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/activex-dll-loading/m-p/300989#M67115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-01-05T18:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: ActiveX DLL loading</title>
      <link>https://forums.autodesk.com/t5/vba-forum/activex-dll-loading/m-p/300990#M67116</link>
      <description>Try this instead.&lt;BR /&gt;
&lt;BR /&gt;
(setq *Application* (vlax-get-acad-object))&lt;BR /&gt;
(setq obj (vla-getinterfaceobject *Application* "Steel.StlUtil"))&lt;BR /&gt;
&lt;BR /&gt;
You may also want to note that vlax-invoke-method does not appear to work.&lt;BR /&gt;
Instead, use vlax-invoke.&lt;BR /&gt;
&lt;BR /&gt;
I believe the latter method has been deprecated, but since it is the only&lt;BR /&gt;
one I can get to work, it is what I use.&lt;BR /&gt;
&lt;BR /&gt;
Chuck&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Lenny Louque" &lt;JJP&gt; wrote in message&lt;BR /&gt;
news:BA85E0E3CA4B3718FDE0708E1A2D8C39@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I am having a problem getting my ActiveX DLL to load. I am using the&lt;BR /&gt;
&amp;gt; following code:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (setq obj (vlax-create-object "Steel.StlUtil"))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; My file is called Steel.dll and i have 2 seperate class files:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Channel(channelform.cls)&lt;BR /&gt;
&amp;gt; StlUtil(utilities.cls)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; when I run this code all I get is NIL after.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The dll file works fine when I refenence it inside a Visual Basic EXE&lt;BR /&gt;
&amp;gt; program.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any help will be appricated&lt;BR /&gt;
&amp;gt; I am new at ActiveX and this my first attempt at this.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I am going to post the DLL fine in customer files NG.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Lenny&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JJP&gt;</description>
      <pubDate>Mon, 06 Jan 2003 04:45:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/activex-dll-loading/m-p/300990#M67116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-01-06T04:45:07Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/activex-dll-loading/m-p/300991#M67117</link>
      <description>I am now getting a different error:&lt;BR /&gt;
&lt;BR /&gt;
; error: Automation Error. Problem in loading application&lt;BR /&gt;
&lt;BR /&gt;
Any idea what could be causing this? Does this mean my DLL might be&lt;BR /&gt;
incorrect?&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
Lenny&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Chuck Gabriel" &lt;CGABRIEL&gt; wrote in message&lt;BR /&gt;
news:4FF1751A5E0022BB52C7447D5C145422@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Try this instead.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (setq *Application* (vlax-get-acad-object))&lt;BR /&gt;
&amp;gt; (setq obj (vla-getinterfaceobject *Application* "Steel.StlUtil"))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; You may also want to note that vlax-invoke-method does not appear to work.&lt;BR /&gt;
&amp;gt; Instead, use vlax-invoke.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I believe the latter method has been deprecated, but since it is the only&lt;BR /&gt;
&amp;gt; one I can get to work, it is what I use.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Chuck&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Lenny Louque" &lt;JJP&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:BA85E0E3CA4B3718FDE0708E1A2D8C39@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; I am having a problem getting my ActiveX DLL to load. I am using the&lt;BR /&gt;
&amp;gt; &amp;gt; following code:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (setq obj (vlax-create-object "Steel.StlUtil"))&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; My file is called Steel.dll and i have 2 seperate class files:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Channel(channelform.cls)&lt;BR /&gt;
&amp;gt; &amp;gt; StlUtil(utilities.cls)&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; when I run this code all I get is NIL after.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; The dll file works fine when I refenence it inside a Visual Basic EXE&lt;BR /&gt;
&amp;gt; &amp;gt; program.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Any help will be appricated&lt;BR /&gt;
&amp;gt; &amp;gt; I am new at ActiveX and this my first attempt at this.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I am going to post the DLL fine in customer files NG.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Lenny&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/JJP&gt;&lt;/CGABRIEL&gt;</description>
      <pubDate>Mon, 06 Jan 2003 16:16:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/activex-dll-loading/m-p/300991#M67117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-01-06T16:16:47Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/activex-dll-loading/m-p/300992#M67118</link>
      <description>Are you certain "Steel" is the correct library name?&lt;BR /&gt;
&lt;BR /&gt;
I doubt there is anything wrong with your DLL, since, as you mentioned&lt;BR /&gt;
before, it works fine in VB.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Lenny Louque" &lt;JJP&gt; wrote in message&lt;BR /&gt;
news:06DD70E426383856A8117EAD1B5BAD1A@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I am now getting a different error:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ; error: Automation Error. Problem in loading application&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any idea what could be causing this? Does this mean my DLL might be&lt;BR /&gt;
&amp;gt; incorrect?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks.&lt;BR /&gt;
&amp;gt; Lenny&lt;/JJP&gt;</description>
      <pubDate>Tue, 07 Jan 2003 05:32:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/activex-dll-loading/m-p/300992#M67118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-01-07T05:32:07Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/activex-dll-loading/m-p/300993#M67119</link>
      <description>Did you call (vl-load-com) before you tried to create the object?&lt;BR /&gt;
&lt;BR /&gt;
"Lenny Louque" &lt;JJP&gt; wrote in message&lt;BR /&gt;
news:06DD70E426383856A8117EAD1B5BAD1A@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; I am now getting a different error:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ; error: Automation Error. Problem in loading application&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any idea what could be causing this? Does this mean my DLL might be&lt;BR /&gt;
&amp;gt; incorrect?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks.&lt;BR /&gt;
&amp;gt; Lenny&lt;BR /&gt;
&amp;gt;&lt;/JJP&gt;</description>
      <pubDate>Tue, 14 Jan 2003 07:25:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/activex-dll-loading/m-p/300993#M67119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-01-14T07:25:46Z</dc:date>
    </item>
  </channel>
</rss>

