Quantcast
Viewing all articles
Browse latest Browse all 5355

DBConnect fail

DBConnect return -100;

When I move my released program to another computer, DBConnect failed and return -100.

But the program run OK on the computer where I build.

The computer where I move the program to has installed MS Access 2003,Word 2003, Excel 2003.

 

the code:

DBInit (DB_INIT_SINGLETHREADED);
 char CurrentPath[MAX_PATH];
 GetProjectDir(CurrentPath);
 char DBConStr[MAX_PATH];
 sprintf(DBConStr,"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=%s\\%s;Persist Security Info=False",CurrentPath,"Result.mdb");

 DBhandle=DBConnect(DBConStr);


Viewing all articles
Browse latest Browse all 5355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>