Author Topic: Bye bye VBA  (Read 2823 times)

0 Members and 1 Guest are viewing this topic.

jbuzbee

  • Swamp Rat
  • Posts: 851
Bye bye VBA
« on: April 05, 2008, 09:01:59 AM »
With the impending doom of VBA what's the alternative to

Code: [Select]
(command "vbastmt" (strcat "AcadApplication.Documents.Open " . . .))?
 :|
James Buzbee
Windows 8

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Bye bye VBA
« Reply #1 on: April 05, 2008, 09:49:55 AM »
huh .. where is the press release?
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Bye bye VBA
« Reply #2 on: April 05, 2008, 01:18:34 PM »
Here is how I do it when you are in MDI mode.
Code: [Select]
(defun MyOpen (FileName ReadOnly / )

(vla-Open
 (vla-get-Documents
  (vlax-get-Acad-Object)
 )
 FileName
 (if ReadOnly
  :vlax-true
  :vlax-false
 )
)
)
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Bye bye VBA
« Reply #3 on: April 06, 2008, 09:25:04 AM »
James Buzbee
Windows 8

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Bye bye VBA
« Reply #4 on: April 06, 2008, 11:01:45 AM »
Ah .. the 64 bit versions .. the problem is Microsoft, not Autodesk ..anyway .. at least now I know what I am up against.. VBA will be around for some time, so long as there are 32bit OS that runs AutoCAD, there will be VBA ... but then .NET is not really a solution ... at least not a secure one.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

sinc

  • Guest
Re: Bye bye VBA
« Reply #5 on: April 06, 2008, 01:27:53 PM »
but then .NET is not really a solution ... at least not a secure one.

Why not?  Do you just not like the obfuscators, or is it that even the good obfuscators are easily-hacked?

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Bye bye VBA
« Reply #6 on: April 06, 2008, 06:14:33 PM »
but then .NET is not really a solution ... at least not a secure one.

Why not?  Do you just not like the obfuscators, or is it that even the good obfuscators are easily-hacked?
My understanding is that an obfuscator merely makes the CLI metadata and strings difficult to understand. If that is the case, all of the tags would still be available, but wouldn't contain useful information about what they are. Still easily changed across the board once disassembly has occured, unless they have significantly improved the obfuscators.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

sinc

  • Guest
Re: Bye bye VBA
« Reply #7 on: April 07, 2008, 01:28:53 AM »
The obfuscators I've seen do more than that, including encryption of strings, and the introduction of "false paths" and so forth that are designed to confuse a decompiler.  I don't really know how secure they really are, though.  Enough to make it difficult for the average developer, but I don't know how well the measures hold up against someone who knows what they are doing.

Bob Wahr

  • Guest
Re: Bye bye VBA
« Reply #8 on: April 07, 2008, 01:52:42 AM »
Making the argument that .net isn't a viable replacement to VBA because of security seems pretty silly to me.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Bye bye VBA
« Reply #9 on: April 07, 2008, 08:16:41 AM »
Bob, I can understand your dilemna, but I don't develop much in VBA, however, when I develop, I do use the COM interface we all know as VBA. If I can no longer utilize the COM interface with my compiled binaries without dealing with marshalling, then I am forced to utilize another method .. namely arx or .net. Autodesk changes arx every few releases so that your program must be recompiled every few versions. This is not a solution when deploying to 10 versions of AutoCAD. I have seen some things that lead me to believe that .NET can be implemented in multiple versions without issue, just so long as I am not using the AutoCAD interop libraries at design time. However security is the concern in that solution. In the end if .NET can be made as secure as a C++ dll, then it will be a solution I can live with.

So, you see, if VBA goes away, I can no longer load my programs in-process with the COM interface and I will be forced to seek other alternatives, thus .NET security is a valid concern.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie