Ask Experts Questions for FREE Help !
Ask
    amit_lalwani's Avatar
    amit_lalwani Posts: 1, Reputation: 1
    New Member
     
    #1

    Mar 11, 2007, 09:55 PM
    Making Dll in VB
    Wat are the steps to make the DLL in vb
    Nosnosna's Avatar
    Nosnosna Posts: 434, Reputation: 103
    Full Member
     
    #2

    Mar 15, 2007, 02:21 PM
    Create a new project of type Class Library (.dll).

    Write the code for the functionality needed in the library.

    Publish it, and then reference it in the programs that need to use that functionality.

    When deciding on the functionality that goes into the dll, you have to keep in mind a few things:

    Is this code reusable? If it's only going to be useful in a single program, then it should be in the program itself... there is no advantage in a dll that will only be used by a single program (in overhead... there are potential advantages for other aspects, especially related to updates, though that's a secondary consideration)

    Is the function generalized? Wherever possible, you should avoid program-specific or single situation implementations in a general use DLL. For example, if you need the average of three values in this program, you should write a function for the average of any number of values instead... this allows for reuse of that code in other situations.

    Is the function trivial? Code reuse is great, but if you have a function for something overly simple, then you don't save any effort by including it in the dll.

    Is the function related to the other functions in the dll? Related functions should be grouped into a single library, while unrelated functions should usually be separate. By grouping things together unnecessarily, your dll will encroach on functionality that it doesn't need in most cases, and your distributions will include much more code than is necessary.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

YImage.dll [ 1 Answers ]

Every time I turn on my computer a YImage.dll is not found and it says I need to reinstall it. How can I get this file back on my computer?

Dll error [ 2 Answers ]

When I try to install SP1 for IE6, I get this ie6wzd.exe error-Entry Point Not Found-"The procedure entry point CoInternetGetSession could not be located in the dynamic link library urlmon.dll." I don't know how to make it right so that it will work.:confused:

CdaEngine0400.dll [ 3 Answers ]

After a computer restart and I log on to my Win XP account I receive this error message. RUNDLL Error loading C:\Program Files\WildTangent\Apps\CDA\cdaEngine0400.dll The specified module could not be found. I believe I caused this error when I uninstalled/deleted the WildTangent program...

Se.dll, fltmgr.dll [ 9 Answers ]

Norton Anti-virus prompted me that both files are at high risk... suggesting that these files should be deleted... donno the importance of such files and if my XP will still run if I delete them :confused:... What should I do?

Dll [ 3 Answers ]

How to open dll files


View more questions Search