H
helpasap
Is there a way to convert VBA-code into a .DLL (Dynamic Link Library)?
Jan
Jan
helpasap said:Is there a way to convert VBA-code into a .DLL (Dynamic Link Library)?
Jan
helpasap said:Is there a way to convert VBA-code into a .DLL (Dynamic Link Library)?
Jan
Jay said:Hi,
A curiosity question: what's the advantage in converting to a DLL?
Does the code run faster?
Jay said:Thanks Jonathan. So is there no change in execution speed? I assume
that a DLL is compiled, whereas VBA is interpreted, but maybe I'm
wrong here.
Jonathan West said:Both are compiled after a fashion. The old distinction between interpreted
and compiled is much muddier than when the terms were distinct about 30
years ago. The key issue with regard to performance is the speed of access
to objects, and that is a much more difficult thing to provide hard & fast
rules for.
All I can say is that when a VB6 ActiveX DLL is compiled and uses early
binding back into the Word object model, I have found execution speeds to be
broadly comparable for my own code. I have not attempted to use VB.NET or C#
for this purpose, so I cannot say whether the same is true for an ActiveX
DLL compiled in a .NET language.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
Jonathan said:Both are compiled after a fashion. The old distinction between
interpreted and compiled is much muddier than when the terms were
distinct about 30 years ago. The key issue with regard to performance
is the speed of access to objects, and that is a much more difficult
thing to provide hard & fast rules for.
All I can say is that when a VB6 ActiveX DLL is compiled and uses
early binding back into the Word object model, I have found execution
speeds to be broadly comparable for my own code. I have not attempted
to use VB.NET or C# for this purpose, so I cannot say whether the
same is true for an ActiveX DLL compiled in a .NET language.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.