*******************UseDll1.cpp********************* #include typedef int (*function1_ptr) (); function1_ptr function1=NULL; int APIENTR
Have you verify that you have all external dependencies for "DLL1.dll" ?
LoadLibrary will fail even if any of the indirect linked-library is not available.