Results 1 to 3 of 3

Thread: yet another DLL question

  1. #1

    Thread Starter
    Hyperactive Member Colonel Klink's Avatar
    Join Date
    Aug 2002
    Location
    Gold Coast, Australia
    Posts
    329

    yet another DLL question

    this is a neal n00bie n00b question....

    i have a module that i use over and over, it doesnt contain any varables except whats passed thru it

    basically its one big function i use for outputting a html file

    can this be turned into a dll so i only have to update that dll to make changes?

  2. #2
    Fanatic Member BillBoeBaggins's Avatar
    Join Date
    Jan 2003
    Location
    in your database, dropping your tables.
    Posts
    628
    This is code stuff I posted on another threat before:

    DLL's are easy.

    1.Create an ActiveX DLL project in VB.
    2.Take the code you keep posting in other apps ( and make sure the code does not depend on anything other then what is included in the code, meaning don't reference form items, or global variables and the such) and post it into the Module called Class1, rename the module Class1 to whatever is appropriate.
    3. Go to Project Properties and change the compile compatability to No Compatibility.
    4. Go to file menu, and make your dll.
    5. Go back to Project Properties and change the compile Compatability to Binary Compatability (This ensures that everytime you change your code and recompile it doesn't re issue your DLL component another GUID)
    6. Go to file menu, and overwrite your old dll by making a new one.
    7. Compiling a DLL in VB automatically registers the component with the system, so go to your other projects and Go To Project -> References, then find your DLL ( Should be the name of your project)

    Wallah all your programs have access to the same code without duplication.

  3. #3

    Thread Starter
    Hyperactive Member Colonel Klink's Avatar
    Join Date
    Aug 2002
    Location
    Gold Coast, Australia
    Posts
    329
    nm i worked it out... thanks
    Last edited by Colonel Klink; Mar 15th, 2003 at 12:18 AM.

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