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);