简体   繁体   English

ODBC连接失败VB6

[英]ODBC connection Fail VB6

I am working on a legacy VB6 application and I am running into problems with database connection. 我正在使用旧版VB6应用程序,但遇到数据库连接问题。

I recieve these two errors in respective order: 我分别收到以下两个错误: 在此处输入图片说明 and 在此处输入图片说明

and the break happens on this line: 中断发生在这一行:

在此处输入图片说明

I made sure that I tried the connection in the ODBC 64bit tool and the 32bit tool. 我确保在ODBC 64位工具和32位工具中尝试了连接。 same results 相同的结果

Any suggestions of what to try next? 关于下一步尝试的任何建议?

You need to use the 32 bit version of ODBC. 您需要使用ODBC的32位版本。 You can't mix 32 and 64 bit code in the same process. 您不能在同一过程中混合使用32位和64位代码。

Use the 32-bit odbc manager to configure your ODBC source: 使用32位odbc管理器配置ODBC源:

C:\\Windows\\SysWOW64\\odbcad32.exe C:\\ WINDOWS \\ Syswow64资料\\ odbcad32.exe的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM