Results 1 to 4 of 4

Thread: Grouping generic functionality

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    28

    Grouping generic functionality

    Hi all,

    Im using VB6 SP6.

    I have a whole bunch of code in different functions and subs that I would like to group together and allow other VB apps to use it.

    In an OO app Java for eg I would put all this code into a class of its own and group related classes into a package.

    An eg I have is I want to create an emailing class that has functions to make it easier to email groups of people or individuals depending on the input.
    How do I go about doing this in VB?

    I assume I put this code into a DLL however AFAIK windows DLLs are written in C++ which I have no knowledge of.

    thanks

  2. #2
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: Grouping generic functionality

    You can create ActiveX DLLs in VB. Start VB and select ActiveX DLL from the New Project dialog. Add a class module that contains your code and you're off! Public Subs and Functions in your class become the DLL's methods.
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Grouping generic functionality


  4. #4

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    28

    Re: Grouping generic functionality

    thanks for the info

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