将 32 位 Advantage Data Provider 包装到 COM+

发布于 2024-07-11 15:27:08 字数 277 浏览 4 评论 0原文

如何通过包装器公开 Advantage.Data.Provider.dll 中的功能。

我的目标是将 COM+ 安装/部署到 64 位服务器中。 Advantage.Data.Provider.dll 是 32 位驱动程序。 不想升级到支持 64 位的 Advantage Database Server 9。 我已经在 C# 中创建了一个服务 .NET 组件,设置它没有问题。 我不知道要在里面放什么。 如何向客户端代码公开 dll 中的功能? 如果您要求我澄清,我会澄清。 谢谢,切斯特顿

How do I expose the functionality found in Advantage.Data.Provider.dll thru a wrapper.

My goal is to install/deploy the COM+ into a 64 bit server. The Advantage.Data.Provider.dll is a 32 bit driver. Don't want to upgrade to Advantage Database Server 9 which does support 64 bit. I have created a serviced .NET Component in c#, no problem setting it up. What I don't know is what to put inside of it. How do I expose the functionality found in the dll to the client code? I will clarify if you ask me to. Thanks, Chesterton

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迟月 2024-07-18 15:27:08

如果我理解正确的话,您想从 64 位服务器上的 COM+ 对象调用 Advantage.Data.Provider.dll。 Advantage.Data.Provider.dll 调用 ads32.dll,这是一个 32 位 dll(版本 9.1 及更早版本)。 无法从 64 位进程调用 ace32.dll。 只有当您的COM+对象运行在32位进程中时,它才能成功调用ace32.dll。

调用 Advantage.Data.Provider.dll(因此调用 ace32.dll)的 C# 应用程序必须面向 x86(32 位)。

If I understand you correctly, you want to call the Advantage.Data.Provider.dll from a COM+ object on a 64-bit server. The Advantage.Data.Provider.dll calls ads32.dll, which is a 32-bit dll (version 9.1 and earlier). The ace32.dll cannot be called from a 64-bit process. Only if your COM+ object is running in a 32-bit process can it call ace32.dll successfully.

A C# application that calls the Advantage.Data.Provider.dll (and therefore, ace32.dll) must be targeted for x86 (32-bits).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文