Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi every one.
I have installed vlc 2.2.1. first i add reference of vlc from com components but when i drag it on the forms then the following error i faced.
Failed To Import The Active X Control. Please Ensure it is property registered.
plz help me.
Posted
Comments
Sergey Alexandrovich Kryukov 29-Oct-15 12:17pm    
System.Windows.Forms.Form, or a Web form? Why using COM, if you are already using object-oriented .NET?
—SA
Haider Ali 29-Oct-15 12:57pm    
System.Windows.Forms.Form
if not use COM then how can i embed any other simple way plz..
Sergey Alexandrovich Kryukov 29-Oct-15 14:54pm    
The mainstream legitimate way of using native code is not COM at all, it's P/Invoke. COM is used just because there is a lot of it in legacy. VLC is not legacy, it is multiplatform library which originally has nothing to do with COM. Please see my answer.
—SA

You did something wrong. It's possible that you did not register ActiveX control. Anyway, I would avoid ActiveX and COM by all means; this is obsolete technology used to bring OOP into non-OOP OS, and .NET if fully object-oriented from the ground; it can use COM, but it's better to avoid it.

Please consider those wrappers:
http://sourceforge.net/projects/libvlcnet,
https://wiki.videolan.org/C_Sharp,
https://wiki.videolan.org/.Net_Interface_to_VLC.

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

See also this CodeProject article: nVLC.

—SA
 
Share this answer
 
Comments
Haider Ali 29-Oct-15 13:03pm    
Sir plz tell me some thing about how to use this wrappers..
Sergey Alexandrovich Kryukov 29-Oct-15 14:55pm    
It is said in documentation on each of them.
—SA
i have found another way.. I am install Vlc packages with NuGet Package Manager and now its work.. Thanks every body :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900