Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No 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 below 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;


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 4-Aug-16 23:57pm
v2

I guess that the Visual C++ 6.0 is to old. Download and install the newest version and retry. You are on a 64-bit machine which will be some problem for this old software.

It is a bad idea to save the db in program files, because of restricted access to it. The db should be in some user directory. May "All User".

Because you havent provided some explicit error code I had the privilege to guess...
 
Share this answer
 
HI,

Error code is given as
com_err.

Looks like com Error.


Thanks & Regards,
Goutham KD
 
Share this answer
 

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