The reason is generally because the DLL or its dependent DLL uses a higher version of the API, and the function in the DLL cannot be found at runtime.
Use the dependency tool to see what may be the case: the first dependent dll file has red in the small square
Normally, it should look like this:
Solution : When VS compiles the dll, please make sure that *.h , *.lib and *.dll of the dependent dynamic link library are consistent.