首页> 中文期刊>计算机技术与发展 >一种64位进程调用32位DLL的方法

一种64位进程调用32位DLL的方法

     

摘要

The 64-bit process cannot load 32-bit dll is a difficult problem to solve in program or platform transplantation. It gives a com-parison of 32-bit and 64-bit system structure,and analyzes the reason that the 64-bit process cannot load 32-bit dll. Study the internal mechanism of out-of-process COM,give a call model about 64-bit process to access 32-bit process COM. Design and implement 32-bit COM server,and the COM component class encapsulates 32-bit dll API. 64-bit process calls 32-bit COM component class interface reg-istered in the process COM server,and indirectly accesses 32-bit dll API. Using singleton mode and garbage collection mechanism,the COM server works stably,and is safe in thread.%  64位进程不能加载32位dll是程序或平台移植中需要解决的一个难题。比较了32位和64位体系结构的区别,分析了64位进程不能加载32位dll的原因。研究了进程外COM服务器组件的内部机制,给出了64位进程访问32位进程外COM组件的调用模型。设计并实现了32位的进程外COM服务器。在COM组件类中封装对32位dll的访问接口,64位进程通过调用在32位进程外COM服务器中注册的COM组件类中的接口,间接地访问32位dll的相关接口功能。方法设计时采用单态模式和垃圾回收机制,线程安全,性能稳定。

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号