“Invalid procedure call or argument” error on “New ADODB.Connection” only if compiled on Windows 7

后端 未结 2 1972
离开以前
离开以前 2021-02-10 07:21

I\'m experiencing some problem when I compile some legacy apps on VB6 since I got a new development machine in windows 7. (my old one was on Windows XP.)

If I compile t

2条回答
  •  星月不相逢
    2021-02-10 07:57

    This is a known Microsoft issue, but I don't think it was a bug; I believe compatibility was broken for security reasons. The problem could have existed on a non-SP1 builds if you had a certain hotfix installed. There are a couple of options referenced in the Microsoft KB. Here is another article providing an update.

    We ran into this problem and we decided to deploy the Backwards Compatibility patch on all developer machines and replace all legacy ADO references with the Backwards Compatibility reference. This has worked well for us.

提交回复
热议问题