|
-
Jun 25th, 2000, 08:56 PM
#1
Thread Starter
Hyperactive Member
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
-
Jun 25th, 2000, 09:12 PM
#2
transcendental analytic
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.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 25th, 2000, 09:12 PM
#3
Fanatic Member
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.
Iain, thats with an i by the way!
-
Jun 25th, 2000, 09:27 PM
#4
Lively Member
Depends
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
-------------------------
There is never only one right answer. That is the magic of programming.
-------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|