When developing the application, I added libraries to the project folder (libcrypto-3-x64.dll, libiconv-2.dll, libintl-9.dll, libpq.dll, libssl-3-x64.dll, libwinpthread-1.dll). PostgreSQL server is local. The project is launched and connected to the database.
I transfer *.exe along with *.dll to "Oracle VM VirtualBox". When I try to connect to a PostgreSQL installed on a real machine, it says: "Can not load PostgreSQL client library "libpq.dll". Check your instsllation."
I also install PostgreSQL in VirtualBox. Now both clients (from the real computer and VirtualBox) connect to both servers.
Why was there an error without PostgreSQL server in VirtualBox? It's not realistic to install a client and a server on all computers...
Both operating systems are Windows 10 x64.