开发背景
http://modthemachine.typepad.com/my_weblog/2009/10/visual-basic-6-add-ins-and-64-bit.html这篇外文介绍了Visual Basic 6给64位的程序开发加载,其思路是:
- 64-bit Windows can run both 32-bit and 64-bit applications (exe’s and dll’s).
- Visual Basic 6 can only create 32-bit applications (exe’s and dll’s).
- A 64-bit exe can only load 64-bit dll’s. It cannot use 32-bit dll’s.
VB6.0开发的dll不能在64位的Office的进程加载,其变通思路是生成标准的32-bit exe则能正常运行。
开发环境
Win7 64-bit + Excel 2010 64-bit + Visual Basic 6