How to programmatically tell if a DLL is present?



I'm working on a program that has a few optional features. I'd like to
be able to let the program run, even when some optional DLLs are not
present.

Basically, I'd like to have a 'light' version of the program that will
still give the user the basic features without requiring them to
install any additional packages.

Somewhere, I remember seeing a program that would detect whether a DLL
was present through late binding and it would let the program continue
to run, but ignore the optional features.

This was in VB6, so it has dropped off the radar of most search
engines.

Anyone have some code that demonstrates this?

Brian

.