这是 Visual Studio 或 AxWMPLib::AxWindowsMediaPlayer 上的错误吗?

问题描述

Microsoft Visual Studio 社区 2019 版本 16.8.4。

这是一个 CLR 项目(.NET Framework 4.5)。

我不确定这个错误的来源,所以我无法向其各自的程序填写错误报告。

我在 Visual Studio Community 2019AxWMPLib::AxWindowsMediaPlayer 上发现了错误。在 AxWMPLib::AxWindowsMediaPlayer 中添加派生自 Designer 的自定义控件时,如果您将 Languageform 切换为 Designer,则它会全部为空,并且您被迫关闭 Designer。对于其他自定义控件,例如派生自 System::Windows::Forms::* 的错误不会发生。

这是我的 ClassLibrary1.dll 例如:

#pragma once

using namespace System;

namespace ClassLibrary1 {
    [System::ComponentModel::ToolboxItem(true)]
    public ref class MyMediaPlayer : public AxWMPLib::AxWindowsMediaPlayer
    {
    public:
        MyMediaPlayer() {}
    };
}

解决方法

问题已在 16.8.6 版上解决。所以它实际上是一个 Visual Studio 错误。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...