Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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
Posted
Updated 7-Aug-16 18:14pm
v2
Comments
KarstenK 5-Aug-16 8:27am    
There thousands of of com_errors and it told you that VS 6 it too old!!!

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[^]
 
Share this answer
 
Better give read and write permission for everyone to db folder,and provide full details of error that u face.


Regards
AravindB
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900