The odbc data source in the control panel, details are as follows:
Click the test connection test
Configuration is successful,
Then use the VS 2015 created a dialog based MFC project, due to create dialog wizard database support option is selected, so in stdafx. H file to add
#include
Then add to project the ODBC classes,
Choose the original configured database myoracle
Then it suggests that
Can you tell me how to solve? Urgent, thank you!
CodePudding user response:
In a 64 - bit Windows:64 exe and DLL in the directory c: \ Windows \ sys tem32 directory.
32 bit exe and DLL in the directory c: \ Windows \ sys wow64 directory.
So pay attention to:
In win64 system registered under 32-bit ocx DLL to 32 ocx or copy the DLL to the c: \ Windows \ syswow64 \ directory,
And registered to c: \ Windows \ syswow64 \ regsvr32 XXXXXXX ocx or DLL
Under win64 a system set up 32-bit programs use a database alias to c: \ Windows \ \ syswow64 \ cliconfg exe
Under win64 a system set up a 32-bit application system DSN to c: \ Windows \ \ syswow64 \ odbcad32 exe
A 64 - bit Windows platform attention point of the file system redirection http://www.cnblogs.com/jiake/p/4981555.html
64 - bit Windows platforms attention point of the registry to redirect http://www.cnblogs.com/jiake/p/4956218.html
CodePudding user response:
MFC or directly use ADO to connect to the database, easy to use