I am trying to something like this:
string pathFiles = Path.Combine(Application.StartupPath, "DB");
string strconn = "Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;" +
"Dbq="+pathFiles+";";
OdbcConnection odbconn = new OdbcConnection(strconn);
odbconn.Open();
and i get this exception
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
The problem is that the same code runs ok on windiws XP , visual studio 2010, office 2007 and it doesn't work on windows 7 64bit , visual studio 2008,office 2010. I really don't know whatvis the difference, i am new to win 7. Some tips would be great.Thanks.