VB or VBA

VB or VBA

Anonymous
Not applicable
135 Views
5 Replies
Message 1 of 6

VB or VBA

Anonymous
Not applicable
My company has VB6 Enterprise Edition. Is their an advantage to using VBA?
Are there things that VBA can do that VB6 can't?
Also, can someone explain how to get a toolbar button to run a .DLL file
instead of an .EXE file?
I am new to interfacing with AutoCAD. My experience is with VB and .EXE
files
0 Likes
136 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
VB beats the tar out of VBA. When it comes to accessing AutoCAD events,
methods and properties, the two are identical in every respect save one: VBA
has a ThisDrawing object which triggers events from every drawing. VB does
not have this nor an automatic way to synchronize documents when the user
flips from one drawing to another. When it comes to available tools VB is
the winner, hands down.

As for getting your toolbars to run VB created apps: if the app is an exe,
just use startapp. If it's a dll, you can either use VisualLISP or a VBA
project to access your dll.

"badgers" wrote in message
news:85cuok$j816@adesknews2.autodesk.com...
> My company has VB6 Enterprise Edition. Is their an advantage to using VBA?
> Are there things that VBA can do that VB6 can't?
> Also, can someone explain how to get a toolbar button to run a .DLL file
> instead of an .EXE file?
> I am new to interfacing with AutoCAD. My experience is with VB and .EXE
> files
>
>
0 Likes
Message 3 of 6

Anonymous
Not applicable
Hi Frank,

I may be wrong, but it is true that STARTAPP will only work with an
installed program ?

Regards

Laurie Comerford
CADApps

Frank Oquendo wrote in message
news:85cv41$jj16@adesknews2.autodesk.com...
> VB beats the tar out of VBA. When it comes to accessing AutoCAD events,
> methods and properties, the two are identical in every respect save one:
VBA
> has a ThisDrawing object which triggers events from every drawing. VB does
> not have this nor an automatic way to synchronize documents when the user
> flips from one drawing to another. When it comes to available tools VB is
> the winner, hands down.
>
> As for getting your toolbars to run VB created apps: if the app is an exe,
> just use startapp. If it's a dll, you can either use VisualLISP or a VBA
> project to access your dll.
>
> "badgers" wrote in message
> news:85cuok$j816@adesknews2.autodesk.com...
> > My company has VB6 Enterprise Edition. Is their an advantage to using
VBA?
> > Are there things that VBA can do that VB6 can't?
> > Also, can someone explain how to get a toolbar button to run a .DLL file
> > instead of an .EXE file?
> > I am new to interfacing with AutoCAD. My experience is with VB and .EXE
> > files
> >
> >
>
>
0 Likes
Message 4 of 6

Anonymous
Not applicable
how does one call a DLL from AutoLisp?

Thank you all for your time and have a great day
0 Likes
Message 5 of 6

Anonymous
Not applicable
Hi,

To load an ActiveX dll from Visual LISP use:

(setq DllObj (vla-getInterfaceObject (vlax-get-acad-object)
"DllName.DllClass"))

Hope this helps.

Andrew Wilford
visualdcl@mindspring.com

Visual DCL v1.0
http://www.mindspring.com/~cwilford/visualdcl.htm
------------Millennium special $89.95!-----------
0 Likes
Message 6 of 6

Anonymous
Not applicable
STARTAPP will fire up any exe it can find. Now accessing ActiveX objects
from those exes is another thing altogether.

Laurie Comerford wrote in message
news:85dcsb$2e414@adesknews2.autodesk.com...
> Hi Frank,
>
> I may be wrong, but it is true that STARTAPP will only work with an
> installed program ?
>
>
> Regards
>
>
> Laurie Comerford
> CADApps
>
> Frank Oquendo wrote in message
> news:85cv41$jj16@adesknews2.autodesk.com...
> > VB beats the tar out of VBA. When it comes to accessing AutoCAD events,
> > methods and properties, the two are identical in every respect save one:
> VBA
> > has a ThisDrawing object which triggers events from every drawing. VB
does
> > not have this nor an automatic way to synchronize documents when the
user
> > flips from one drawing to another. When it comes to available tools VB
is
> > the winner, hands down.
> >
> > As for getting your toolbars to run VB created apps: if the app is an
exe,
> > just use startapp. If it's a dll, you can either use VisualLISP or a VBA
> > project to access your dll.
> >
> > "badgers" wrote in message
> > news:85cuok$j816@adesknews2.autodesk.com...
> > > My company has VB6 Enterprise Edition. Is their an advantage to using
> VBA?
> > > Are there things that VBA can do that VB6 can't?
> > > Also, can someone explain how to get a toolbar button to run a .DLL
file
> > > instead of an .EXE file?
> > > I am new to interfacing with AutoCAD. My experience is with VB and
.EXE
> > > files
> > >
> > >
> >
> >
>
0 Likes