如何编写 VB5 应用程序来使用 Web 服务?

发布于 2024-08-23 13:01:40 字数 95 浏览 4 评论 0原文

我正在使用一个用 VB5 编写的遗留应用程序,我需要赋予它使用 Web 服务的能力。

有人知道如何做到这一点吗?我听说VB6可以做到这一点,但我也没有任何细节。

I'm working with one legacy application written in VB5, and I need to give it the ability to consume a web service.

Anyone know how this can be done? I've heard that it can be done for VB6, but I don't have any detail on that either.

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

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

发布评论

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

评论(1

寄离 2024-08-30 13:01:40

别打扰。

我的意思并不是说,如果他们不愿意将应用程序从 VB5 升级到 VB6,那么为什么还要费心添加 Web 服务功能。我的意思是,只需在 VB.NET 中编写一个类来使用 Web 服务并将其公开为 COM 对象。然后在VB5程序中消费COM对象。

我不确定 VB5 发布时 Web 服务是否存在 - 不要试图让 VB5 处理它从未听说过的事情来诱惑命运。


另外,请考虑以下建议:

可能有人认为将 VB5 应用程序升级到 VB6 没有意义。也许人们认为应用程序在被替换之前不会发生太大变化。

但事实上,您在这里谈论 Web 服务表明 VB5 应用程序仍然有一些生命力。您至少应该考虑升级到VB6。

Don't bother.

I don't mean that if they can't be bothered to upgrade the app from VB5 to VB6, then why bother adding web service functionality. I mean, just write a class in VB.NET to consume the web service and to expose it as a COM object. Then consume the COM object in the VB5 program.

I'm not sure web services even existed when VB5 was released - don't tempt fate by trying to get VB5 to deal with something it's never heard of.


Also, consider the following suggestion:

It may have been thought that there was no point in upgrading the VB5 application to VB6. Maybe it was thought that the application wasn't going to change much before it was replaced.

But the fact that you're here on SO talking about web services shows that the VB5 application still has some life left in it. You should consider at least the upgrade to VB6.

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