Results 1 to 4 of 4

Thread: DLL vs. standard module

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458

    Wink

    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

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  3. #3
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    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!

  4. #4
    Lively Member
    Join Date
    Jan 1999
    Posts
    81

    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
  •  



Click Here to Expand Forum to Full Width