how do I check the libpq.dll in windows 10 dependency?
Do you know how to use a PE file viewer ? ... if you don't, it will be a bit difficult for you to carry out my suggestions but... there is a graphical, easy to use PE file viewer, CFF Explorer written by Daniel Pistelli, you can download a free copy at
https://ntcore.com/?page_id=388Things you want to look at are:
1. make sure the bitness of the DLL you want to use matches the bitness of your program.
2. Look at the DLL's import section. You'll see a list of other DLLs it depends on. Every one of those DLLs must be loadable in order for the dependent dll to load successfully. Make sure you find every dll on that list in your system. if any are missing, the dll won't load (also, make sure the bitness of those you find matches the bitness of the dll you want to use/load.)
CFF Explorer will enable you to carry steps 1 and 2 easily.
3. To figure out if Windows can find the DLL(s) for you, put a LoadLibrary call in your code for the dll. If the name of the DLL is correct in that call and, the call fails, the most common reasons are a.) Windows cannot find the dll and/or b.) the bitness of the dll it found does not match the bitness of your program.
HTH.
ETA: if you specify the full path in the LoadLibrary call then Windows should find it. If the load fails, it may be because of a bitness mismatch, a dependency on another dll that is not satisfied or, uncommon but possible, the dll is corrupt.