Albeit slightly answered, if the .dll file is missing from the System32 folder you can always replace it using a different computer and downloading it. Just Google the .dll file name.
If you are missing a .dll file from the Windows folder I would also virus scan the drive.
If you are missing a .dll for a program you most likely need to reinstall the program.