Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 1 of 1 total
Thread 64 Bit Windows 7 Connection Issues...
Tue, Apr 12 2011 3:34 PMPermanent Link

Peter A. Hollyer


I've used DBISAM for years in the XP world...and I have finally moved to Windows 7, 64 Bit, but now my applications no longer work...I figure I have to change something...

What I have always done is build the Registry Settings:

ODBCINST.INI
 ClassBuilder Driver
      Driver = {full path}\dbodbc.dll


My Visual Studio Code then connections to the Driver like this:

dbConn = new OdbcConnection("Driver={ClassBuilder Driver};ConnectionType=Local;CatalogName="
      + WorkAppPath.AppPath + "\\Database;PrivateDirectory="
      + WorkAppPath.AppPath + "\\Database\\Temp;");


I get an error saying that the driver cannot be opened...and it returns (I dont have it on hand at work) that its trying to open the driver as if it is a 64 bit driver instead of a 32 bit driver...From Google.

If I use the ODBC Driver app (odbcad32.exe) in Windows 7, I believe it was in the from the SysWOW64...Then I can see my DBISAM ODBC Driver (ClassBuilder Drriver) linking it to the DBISAM Driver

Which DSN do I want to create? User DSN, System DSN, File DSN ??

And then  what is the code change to point my connection Object to the DSN?   
Something like:

dbConn = new  OdbcConnection("DSN = ClassBuilder Driver");

??
Pete Hollyer
Image