Hello,
I am trying to use VLC player (1.1.4) in a C# Win Form Application
I have stopped using ActiveX version because I encountered many issues : Blue screen when disposing vlc object, some VLC options not available, etc... all of those issues are described in other topics of this forum,
So now I am trying to use a C# wrapper on the libvlc.dll :
many topics on this subject on VideoLan.org are outdated so I started from scratch and made my own DllImports commands from the doxygen documentation
(http://www.videolan.org/developers/vlc/doc/doxygen/html)
But now I am stuck with one of the most basic command :
libvlc_media_player_set_hwnd
which, still from the documentation should work with only 2 parameters : media_player object handle and a window handle
So I tried several syntaxes but this simple one should work:
[DllImport("libvlc")]
static extern void libvlc_media_player_set_hwnd(IntPtr vlcHandle, IntPtr windowHandle);
My problem is that when I compile my project with Visual Studio Express 2008, I get an error message basically saying it does not find this method inside the libvlc.dll, while my other calls to the imported methods seems at least to compile..
Does any one here know the correct and UP TO DATE syntax for this Dllimport command?
thanks in advance