C#不想导入VLC ActiveX控件 [英] C# doesn't want to import VLC ActiveX control

查看:126
本文介绍了C#不想导入VLC ActiveX控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Windows 8.1,使用VS2010 Express。

我安装了VLC并尝试使用VLC ActiveX,我做了以下工作:

1-在工具箱中:我选择了选择项目然后导航到VideoLan插件并选择它。

2-在项目菜单中我选择添加参考并导航到VideoLan Activex插件并添加它作为参考。

3-每当我从工具箱中拖动VLC添加到我的表单时,我都会无法导入AciveX控件。请确保它已正确注册。

4-我以管理员身份启动cmd并使用Regsvr32来取消注册Dll,然后重新注册。



问题是存在的,无论我做什么,我仍然会得到同样的错误,任何人都可以帮忙吗?

解决方案

您的VLC控件可能依赖于您的机器没有的另一个.DLL。



向你所控制的人询问它所依赖的内容。


您没有解释您在C#中使用VCL的确切原因,但.NET有不同的包装:

http://sourceforge.net/projects/libvlcnet [ ^ ],

https://wiki.videolan.org/C_Sharp [ ^ ],

https://github.com/ZeBobo5/Vlc.DotNet [ ^ ]。



另见我过去的答案:

使用C#在Windows资源管理器中预览所选文件 [ ^ ],

在没有WMP的情况下在vb.net中流式播放音乐文件 [ ^ ]。



-SA


I use windows 8.1 , with VS2010 Express.
I have VLC installed and trying to use VLC ActiveX, I have done the following:
1- In toolbox: I selected choose item then navigated to VideoLan Plugin and selected it.
2- In project menu I selected Add reference and navigated to VideoLan Activex Plugin and added it as reference.
3- Whenever I drag VLC from tool box to add to my form I get "Failed to import AciveX control. please ensure it is properly registered".
4- I started cmd as administrator and used Regsvr32 to unregister the Dll , then register it again.

The problem is exists , I still get the same error no matter what I do ,Can anyone help with this please ?

解决方案

Your VLC control probably has a dependency on another .DLL that your machine doesn't have.

Ask the people you got the control from what it depends on.


You did not explain who exactly did you use VCL in C#, but there are different wrappers for .NET:
http://sourceforge.net/projects/libvlcnet[^],
https://wiki.videolan.org/C_Sharp[^],
https://github.com/ZeBobo5/Vlc.DotNet[^].

See also my past answers:
Preview selected file in Windows Explorer using C#[^],
Streaming music files in vb.net without WMP[^].

—SA


这篇关于C#不想导入VLC ActiveX控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆