I have a program that can be used in an environment where the end user may or may not have Novell libraries installed. I need to have one program that has conditional compilation, so when I build, the program will either have live subroutines that call the Novell libraries, or stubs.

The problem is that the full program has a Novell component (nwdirauth.dll) that will be missing on some systems. I would like to be able to use the conditional compilation switches so that the compiler might include the component, as long as I had set the switch.

Or, if it is possible, use late binding in the live novell subroutines, so that the routine would perform a createobject on the DLL, so it can be referenced without adding the component at build time.

This is a major piece of my project. Please help!