<?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: Protecting VBA Code in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/protecting-vba-code/m-p/325185#M92233</link>
    <description>Well, if your concern is about speed, you can write an&lt;BR /&gt;
ActiveX dll in VB a call it from VBA. A dll is loaded in&lt;BR /&gt;
process, so it is as fast as VBA... well, depending on&lt;BR /&gt;
the kind of computation you do, it may be even faster (if&lt;BR /&gt;
you have some routines that don't call Autocad objects&lt;BR /&gt;
and produce heavy CPU load, but in fact that's not much&lt;BR /&gt;
common when you work on customization). You can just make&lt;BR /&gt;
available a public method in which you pass the current drawing,&lt;BR /&gt;
or the application object to the dll, and then the dll could&lt;BR /&gt;
be developed just as a standard VB program. I think this &lt;BR /&gt;
solves both performance and protection problems.&lt;BR /&gt;
Good work.&lt;BR /&gt;
Andrea&lt;BR /&gt;
&lt;BR /&gt;
Natan Elsberg wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Does anyone have any thoughts on protecting your visual basic code&lt;BR /&gt;
&amp;gt; which you would like to distribute to customers?&lt;BR /&gt;
&amp;gt; I have been developing a bunch of customization and localization&lt;BR /&gt;
&amp;gt; routines for LDD in VBA.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I am planning on using some type of code cross referenced in the&lt;BR /&gt;
&amp;gt; registry for licensing.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I have added a password on the original source code.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; My question is how reasonable a method is this?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Does the password source code protection have any back doors or bugs&lt;BR /&gt;
&amp;gt; (could an unhandled runtime error for example&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; accidentally reveal code?)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; My other option is to compile and go with standard vb but from what&lt;BR /&gt;
&amp;gt; I've been lead to believe it would be much slower&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; executing because it is out of the acad process.  As well I think that&lt;BR /&gt;
&amp;gt; there are more coordination problems when trying to&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; work in acad.  If this is untrue please feel free to clarify.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; Natan Elsberg</description>
    <pubDate>Tue, 04 Jul 2000 13:21:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-07-04T13:21:18Z</dc:date>
    <item>
      <title>Protecting VBA Code</title>
      <link>https://forums.autodesk.com/t5/vba-forum/protecting-vba-code/m-p/325184#M92232</link>
      <description>Does anyone have any thoughts on protecting your visual basic code&lt;BR /&gt;
which you would like to distribute to customers?&lt;BR /&gt;
I have been developing a bunch of customization and localization&lt;BR /&gt;
routines for LDD in VBA.&lt;BR /&gt;
&lt;BR /&gt;
I am planning on using some type of code cross referenced in the&lt;BR /&gt;
registry for licensing.&lt;BR /&gt;
&lt;BR /&gt;
I have added a password on the original source code.  &lt;BR /&gt;
&lt;BR /&gt;
My question is how reasonable a method is this?&lt;BR /&gt;
&lt;BR /&gt;
Does the password source code protection have any back doors or bugs&lt;BR /&gt;
(could an unhandled runtime error for example &lt;BR /&gt;
&lt;BR /&gt;
accidentally reveal code?)&lt;BR /&gt;
&lt;BR /&gt;
My other option is to compile and go with standard vb but from what&lt;BR /&gt;
I've been lead to believe it would be much slower &lt;BR /&gt;
&lt;BR /&gt;
executing because it is out of the acad process.  As well I think that&lt;BR /&gt;
there are more coordination problems when trying to &lt;BR /&gt;
&lt;BR /&gt;
work in acad.  If this is untrue please feel free to clarify.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Natan Elsberg</description>
      <pubDate>Tue, 04 Jul 2000 13:21:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/protecting-vba-code/m-p/325184#M92232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-07-04T13:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Protecting VBA Code</title>
      <link>https://forums.autodesk.com/t5/vba-forum/protecting-vba-code/m-p/325185#M92233</link>
      <description>Well, if your concern is about speed, you can write an&lt;BR /&gt;
ActiveX dll in VB a call it from VBA. A dll is loaded in&lt;BR /&gt;
process, so it is as fast as VBA... well, depending on&lt;BR /&gt;
the kind of computation you do, it may be even faster (if&lt;BR /&gt;
you have some routines that don't call Autocad objects&lt;BR /&gt;
and produce heavy CPU load, but in fact that's not much&lt;BR /&gt;
common when you work on customization). You can just make&lt;BR /&gt;
available a public method in which you pass the current drawing,&lt;BR /&gt;
or the application object to the dll, and then the dll could&lt;BR /&gt;
be developed just as a standard VB program. I think this &lt;BR /&gt;
solves both performance and protection problems.&lt;BR /&gt;
Good work.&lt;BR /&gt;
Andrea&lt;BR /&gt;
&lt;BR /&gt;
Natan Elsberg wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Does anyone have any thoughts on protecting your visual basic code&lt;BR /&gt;
&amp;gt; which you would like to distribute to customers?&lt;BR /&gt;
&amp;gt; I have been developing a bunch of customization and localization&lt;BR /&gt;
&amp;gt; routines for LDD in VBA.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I am planning on using some type of code cross referenced in the&lt;BR /&gt;
&amp;gt; registry for licensing.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I have added a password on the original source code.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; My question is how reasonable a method is this?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Does the password source code protection have any back doors or bugs&lt;BR /&gt;
&amp;gt; (could an unhandled runtime error for example&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; accidentally reveal code?)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; My other option is to compile and go with standard vb but from what&lt;BR /&gt;
&amp;gt; I've been lead to believe it would be much slower&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; executing because it is out of the acad process.  As well I think that&lt;BR /&gt;
&amp;gt; there are more coordination problems when trying to&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; work in acad.  If this is untrue please feel free to clarify.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; Natan Elsberg</description>
      <pubDate>Tue, 04 Jul 2000 13:21:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/protecting-vba-code/m-p/325185#M92233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-07-04T13:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Protecting VBA Code</title>
      <link>https://forums.autodesk.com/t5/vba-forum/protecting-vba-code/m-p/325186#M92234</link>
      <description>As far as the password part of the question, it's not a reasonable method.&lt;BR /&gt;
In house, it's fine if you want to keep your users from seeing your code&lt;BR /&gt;
in the event of a runtime error, ect. But it's not secure. Go with the&lt;BR /&gt;
dll.&lt;BR /&gt;
-Josh&lt;BR /&gt;
&lt;BR /&gt;
Natan Elsberg wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Does anyone have any thoughts on protecting your visual basic code&lt;BR /&gt;
&amp;gt; which you would like to distribute to customers?&lt;BR /&gt;
&amp;gt; I have been developing a bunch of customization and localization&lt;BR /&gt;
&amp;gt; routines for LDD in VBA.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I am planning on using some type of code cross referenced in the&lt;BR /&gt;
&amp;gt; registry for licensing.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have added a password on the original source code.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; My question is how reasonable a method is this?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Does the password source code protection have any back doors or bugs&lt;BR /&gt;
&amp;gt; (could an unhandled runtime error for example&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; accidentally reveal code?)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; My other option is to compile and go with standard vb but from what&lt;BR /&gt;
&amp;gt; I've been lead to believe it would be much slower&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; executing because it is out of the acad process.  As well I think that&lt;BR /&gt;
&amp;gt; there are more coordination problems when trying to&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; work in acad.  If this is untrue please feel free to clarify.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; Natan Elsberg</description>
      <pubDate>Wed, 05 Jul 2000 14:40:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/protecting-vba-code/m-p/325186#M92234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-07-05T14:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Protecting VBA Code</title>
      <link>https://forums.autodesk.com/t5/vba-forum/protecting-vba-code/m-p/325187#M92235</link>
      <description>I read somewhere that it is possible to protect AutoCAD VBA code with&lt;BR /&gt;
a password, but I can't remember where I read it and I also can't&lt;BR /&gt;
figure out how to do it. I'm looking to create something like a&lt;BR /&gt;
Microsoft Access MDE file where the code is hidden from users. Do I&lt;BR /&gt;
have to switch to VB to be able to do this?&lt;BR /&gt;
&lt;BR /&gt;
Ian Thomson</description>
      <pubDate>Sun, 20 Aug 2000 18:30:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/protecting-vba-code/m-p/325187#M92235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-08-20T18:30:12Z</dc:date>
    </item>
  </channel>
</rss>

