-
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?
-
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.
-
nm i worked it out... thanks :)