ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel XLL versus DLL (https://www.excelbanter.com/excel-programming/402068-excel-xll-versus-dll.html)

Sing

Excel XLL versus DLL
 
Dear Excel Gurus,

I have been writing Excel DLL. Recently, I got to know about Excel XLL
files.

Can someone advise on the pros and cons of each? Under what kind of
situation should determine our choice of using XLL or DLL?



Charles Williams

Excel XLL versus DLL
 
Assumimg your DLLs are VB6 DLLs then XLLs are faster because they use the C
API rather than going through the COM layer, and because complied C is
faster than compiled VB.
But only a subset of the Excel object model is exposed to the C interface
which may be a problem.
Also if you are writing application extension addins which expose an EUI
this tends to be more work in an XLL.

So the general recommendation is to use XLL when you need very fast
worksheet functions, otherwise VBA XLA or VB DLL.

Charles
_________________________________________
UK Cambridge XL Users Conference 29-30 Nov
http://www.exceluserconference.com/UKEUC.html

"Sing" wrote in message
...
Dear Excel Gurus,

I have been writing Excel DLL. Recently, I got to know about Excel XLL
files.

Can someone advise on the pros and cons of each? Under what kind of
situation should determine our choice of using XLL or DLL?






All times are GMT +1. The time now is 10:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com