I have an application which is x64 and which is using ADODB connection via importing msado15.dll, like it is shown below:
#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF", "ADOEOF") rename("BOF","ADOBOF")
_ConnectionPtr con;
HRESULT HRR = con.CreateInstance(__uuidof(Connection));
I have wine 9.0~repack-4build3, a fresh x64 wineprefix, where I downloaded (from the Microsoft site) and installed MDAC 2.8 and Microsoft Access Runtime. However, when I run the program I got the hresult 0x80004002 (E_NOINTERFACE) on the con.CreateInstance call, which means that the class either is not registered, or cannot be created.
Could you tell me what is the proper installation and settings order to make the ADO connection class be visible?
Besides, I tried an ODBC connection to the same database, but at any case, does not matter whatever I tried, I got an error while connecting to the database. The code is
#include "afxdb.h"
CDatabase cdbMydb{};
cdbMydb.OpenEx(L"DSN=MS Access Database;DBQ=MyDB.mdb");
the error occurres on the cdbMydb.OpenEx line, it seems that error is the same.
So, there is a second question: is there a way of connecting a database on Wine in x64 prefix?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743780610a4505727.html
评论列表(0条)