关于TCL加载TCOM报错不能加载的问题

来源:互联网 发布:淘宝商品编号怎么查 编辑:程序博客网 时间:2024/05/21 06:17
This appears to be a 32-bit/64-bit issue. You can't mix different bit-sizes within the same process and you may well have installed a 64-bit build of ActiveTcl 8.6.0.0 under the belief that matching the size of the build and the system architecture is a good idea. Alas, this is not the case. ActiveTcl 8.6.0.0 for 64-bit Windows, for commercial reasons, requires an extra product key to access their 64-bit builds of external packages. But you've got the package installed anyway (perhaps from a previous installation of ActiveTcl?) and that appears to be a 32-bit build.

The misleading error from using the wrong size of binary library build is unfortunate (a relatively minor bug stemming from the subtle differences between Windows and POSIX and how Tcl handles the mapping between the two) but I'd bet that's it.

The easiest fix is to:

  1. Uninstall all copies of ActiveTcl that you've got installed, then
  2. Ensure that your C:\Tcl directory really is deleted, and then
  3. Install the 32-bit build of ActiveTcl 8.6.0.0 (which works just fine on Win64-based systems like 64-bit Windows 7 and Windows 8). Once you've done that, you
  4. Use teacup update to get a full set of packages installed and you should get Tcom working.
0 0