dll question

gojericho0gojericho0 Member Posts: 1,059 ■■■□□□□□□□
Does anyone have a good explination\link about how dll's work, when a program would call call them?

Comments

  • Ricka182Ricka182 Member Posts: 3,359
    A Dynamic Link Library (DLL) is a file of code containing functions that can be called from other executable code (either an application or another DLL). Programmers use DLLs to provide code that they can reuse and to parcel out distinct jobs. Unlike an executable (EXE) file, a DLL cannot be directly run. DLLs must be called from other code that is already executing.
    In more understandable words, a DLL is a file which does a particular job, and allows other programs to use its efforts in assisting the program's job. Some programs use a DLL so that they won't need to spend time figuring out how to do that job. For example, Microsoft has a DLL comctl32.dll which does all the user interface jobs (toolbars, text boxes, scroll bars, etc). So, other programs use that DLL so they won't have to create their own edit boxes, etc. When a program requires a DLL to run, and can't find it, it won't be able to run because its suddenly missing the DLL to perform some of its critical work. We've all used DLLs before and we're using them now. They're required to run all Windows programs, including Windows but you never actually see them at work. There are different versions of the same file name. Just because the file appears to be the same doesn't mean it is. To check what version the file is, open Windows Explorer, locate the file and right click on it. Select Properties and click on the Version tab. If there is no version tab then the file does not have a version number. Generally, if you have a newer version of a file, don't replace it with an older version.
    i remain, he who remains to be....
  • gojericho0gojericho0 Member Posts: 1,059 ■■■□□□□□□□
    Thanks Rica! You helped me with my problem.

    I was having a conflict between two programs. A newley installed program over wrote a dll an earlier version of a dll another program used. I didn't want to just try replacing the old dll with the new one so I uninstalled both programs and installed them again and they both use the newer dll.
  • ajs1976ajs1976 Member Posts: 1,945 ■■■■□□□□□□
    Sounds like you got your first introduction to DLL Hell.
    Andy

    2020 Goals: 0 of 2 courses complete, 0 of 2 exams complete
  • Ricka182Ricka182 Member Posts: 3,359
    No problem. icon_cool.gif That's usually the case, there are so many damn dlls, they can be evil sometimes...... icon_twisted.gif
    i remain, he who remains to be....
  • JDMurrayJDMurray Admin Posts: 13,101 Admin
    There was a similar question and DLLs asked in this thread a little while ago: http://www.techexams.net/forums/viewtopic.php?t=12956
Sign In or Register to comment.