If "some will show an error message, and others will not," then this may be an important clue.
DLLs may require other DLLs in order to run properly. For example, many DLLs require "MSVCRTxx.DLL" (the MicroSoft Virtual-C++ RunTime DLL) in a particular version in order to run. I don't know about "php_domxml.dll" in particular, but maybe this notion is ringing a few bells for you anyhow.
If "some DLLs load, while others do not," look for distinguishing features such as these.