|
-
Mar 14th, 2003, 11:25 PM
#1
Thread Starter
Hyperactive Member
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?
-
Mar 14th, 2003, 11:40 PM
#2
Fanatic Member
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.
-
Mar 15th, 2003, 12:00 AM
#3
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|