Program Tip error:
BadImageFormatException is raised when trying to load an Oracle client library. This problem occurs if you are running in 64-bit mode with the 32-bit Oracle client component installed.
The scene appears:
The VS2008 c/s application is generated by connecting the Oracle database with ADO.
Solution Summary:
Installing the Instantclient_11_2 file
Implementation steps:
1. Extract the instantclient_11_2 to the Oracle Client installation directory. Note that the directory to be placed is ... app\administrator\product\11.2.0 as shown:
2. Modify the component configuration
In the extracted folder Instantclient_11_2 root, create a new folder named Network, and then in the root directory of the network folder, create a new folder named Admin.
Copy all the files in the Oracle Client installation directory ... app\administrator\product\11.2.0\client_1\network\admin to the previously created Admin folder.
3. Modify the environment variable path
Edit the system variable path, place the ... \app\administrator\product\11.2.0\instantclient_11_2 directory at the front of the PATH variable,
Remember to copy the past and add a semicolon to differentiate it from the values of other path variables. The system can be restarted at the end.
Win7 Reference chart:
WIN10 Reference Chart:
Reference: https://jingyan.baidu.com/article/a24b33cd3d121219fe002b00.html
BadImageFormatException when Oracle client library is raised