My C++ DLL does not know how to find the OpenCV libraries inside the same directory it is located

When I call to the DLL called test.dll that is inside a folder called libs this one does not work, instead when I place the OpenCV DLL inside the folder of the program it works, is there some way to make that it prefers the own PATH of the DLL test.dll instead of the folder from where I call it without modifying the environment variables?