使用msdxm.ocx将vb6项目升级为wmp.dll
我们有一个旧版 vb6 应用程序,它使用古老的 Windows 媒体播放器组件 msdxm.ocx
将超声(怀孕)视频嵌入医疗记录中。
这在 Windows 7 上不再起作用:它有较新版本的 msdxm.ocx
,无法从 vb6 引用。
嵌入式播放器的较新版本是 wmp.dll
,因此我们计划将应用程序升级到 Windows 7 的较新版本。
在我们必须自己费尽心思找出答案之前:有人有从 msdxm.ocx
升级到 wpm.dll
的经验吗?升级时是否有需要考虑的事项清单?或者一个将常量和事件从第一个转换为第二个的表?
We have a legacy vb6 application that uses an ancient windows media player component, msdxm.ocx
, to embed ultrasound (pregnancy) video's in the medical record.
This doesn't work any more on Windows 7: it has a newer version of msdxm.ocx
which cannot be referenced from vb6.
The newer version of the embeddable player is wmp.dll
, so we are planning to upgrade the application to the newer version for Windows 7.
Before we have to find it all out the hard way by ourselves: does someone have experience with this upgrade from msdxm.ocx
to wpm.dll
? Is there a list of things to consider when upgrading? Or a table to convert constants and events from the first to the second?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我还没有看到任何并排列出它们的对象模型或提供任何“转换”的内容。
msdxm.ocx 实际上是一个可编写脚本的 IE 对象,不应该在 VB6 程序中使用。不过很多人都这么做了。 Windows 7 仍然有这个 OCX,但从 Vista(或者可能是 IE7?)开始,它的界面发生了变化,似乎阻止了在 VB6 程序中使用。
您可能想尝试运行 ActiveX Documenter 之类的工具来开始工作这两个库的版本都可以帮助您的工作。 RTF 输出文档可能是编写您自己的转换指南的起点。
I haven't seen anything listing their object models side-by-side or offering any "conversion."
The msdxm.ocx was really a scriptable IE object and should not have been used in VB6 programs. Lots of people did though. Windows 7 still has this OCX but starting with Vista (or perhaps IE7?) its interfaces changed in a way that seems to prevent use in VB6 programs.
You might want to try running a tool like ActiveX Documenter aginst working versions of both libraries to assist your efforts though. The RTF output documents might be a starting point for writing your own conversion guide.
如果您将 OCX 文件放入 C:\Windows\SysWOW64 并注册,msdxm.ocx 应该仍然可以工作。
我在我的 Win7 上尝试过,它可以在我的音乐播放器旧版应用程序上运行。
虽然不知道Windows 8,但可能还是一样,MS 可能会再次更改文件夹。
msdxm.ocx should still work if you put the OCX file in C:\Windows\SysWOW64 and register it.
I've tried on my Win7 and it works on my music player legacy app.
Don't know about Windows 8 though, but it might still be the same, MS might changed folder again then.