无法从Microsoft Visual C ++ 6.0打开与MS ACCESS数据库的DB连接

问题描述:

大家好,



- >我正在使用microsoft Visual C ++ 6.0构建c ++应用程序



- >当我从安装程序安装应用程序并从已安装的实例运行它时它工作正常并且能够在路径中的MS访问DB执行数据库操作: C:\Program Files(x86)\ Mycompany \ SUSClient \Database\Host.mdb



问题陈述是当我尝试从Microsoft的解决方案运行应用程序时Visual C ++ 6.0,应用程序无法打开与DB的连接



Db连接如下:



Provider = Microsoft.Jet.OLEDB.4.0;



错误代码说..它的 com_error



请告诉我你的担忧。



谢谢&此致,

Goutham KD



我的尝试:



无法从Microsoft Visual C ++ 6.0打开数据库连接到MS ACCESS数据库

Hello All,

-> I am having c++ application built using microsoft Visual C++ 6.0

-> when i install the application from installer and run it from the installed instance its working fine and able perform DB operation with MS access DB which is in the path: C:\Program Files (x86)\Mycompany\SUSClient\Database\Host.mdb

The problem statement is when i try to run the application from the Solution of Microsoft Visual C++ 6.0, the application fails to Open connection to the DB

Db connection as below:

Provider=Microsoft.Jet.OLEDB.4.0;

Error Code says that.. Its com_error

Kindly let me know your concerns on the same .

Thanks & Regards,
Goutham K D

What I have tried:

Not able to open DB Connection to MS ACCESS DB from Microsoft Visual C++ 6.0

连接字符串似乎不完整。请检查:访问连接字符串 - ConnectionStrings.com [ ^ ]



详情请见:

Visual C ++中的数据访问 [ ^ ]

OLE DB编程 [ ^ ]
Connection string seems to be incomplete. Check this: Access connection strings - ConnectionStrings.com[^]

For further details, please see:
Data Access in Visual C++[^]
OLE DB Programming[^]


更好地为每个人提供对db文件夹的读写权限,并提供您所面临的错误的完整详细信息。 />




问候

AravindB
Better give read and write permission for everyone to db folder,and provide full details of error that u face.


Regards
AravindB