Hi,
I want to have a library of my own functions that I use often. Should I put them in a ActiveX DLL or a standard module?
What are ActiveX DLLs and when should I write them?
Thanks
Tomexx
Printable View
Hi,
I want to have a library of my own functions that I use often. Should I put them in a ActiveX DLL or a standard module?
What are ActiveX DLLs and when should I write them?
Thanks
Tomexx
I would recommend the module, but there are of course others that would say ActiveX DLL. Basically you need to get object oriented with them, but you can do that by source also, just use classmodules instead of standard.
ActiveX Dll's are Dynamic Link Libraries, which containst compiled set of code in classes, it can be used by several other compiled exe's and projects, a good thing is that you can share both code and variables between different applications.
Dll's are very handy, as you write the dll, then forget about it. Just add a reference to the dll in your project and you can use all of the methods, and functions.
The only problem with them is they have a slight overhead, that modules don't have. All dll's have this calling overhead. It will not be noticeable unless you are calling the same function over, and over again in a loop.
If you are calling the same function a lot, then use a module. Other wise go for the dll. I have only recently started using them, but i am their biggest fan already.
If you want to use any of these with web pages or other programs activex is the way to go... but if its going to be used just inside of vb i would go to the module...
Just my 2 cents