Using libVLC in Visual C++ 2008
Posted: 10 Oct 2011 09:45
Hi all,
unfortunatelly, I'm bad in English so may be I haven't understood some pieces of information from VideoLAN wiki. More that, I sure that somewhere in this forum there is a topic about my problem, but I can't find it. Finally, I don't know if I'm writing to correct thread
Back to my problem:
I've read information at http://wiki.videolan.org/LibVLC_Visual_C . I realized that I have to copy libvlc.dll, libvlccore.dll and Plugins folder to my Debug directory. So I copied all *.dll files that I've found in VLC directory, including libvlc.dll, libvlccore.dll and Plugins folder. Then I've created console project in my Visual Microsoft C++ 2008 Express and copied the code of vlc.h and testvlcconsole.cpp. After running this project I've seen that method loadLibrary(libreria) had returned that libvlc.dll hadn't loaded. But that isn't a problem - I've solved it by adding those *.dll files and Plugins folder to the directory where testvlcconsole.cpp is. After that libvlc.dll was included successfully but in method int initLib(LPWSTR libreria) the first if-clause
if ((VLC_AddIntf = (_VLC_ADDINTF) GetProcAddress(libvlc, "VLC_AddIntf")) == NULL)
return funcionFalla("VLC_AddIntf");
returned FUNCTIONFALLA. I do not know what I should do to solve this problem. I tried to google "La funcion VLC_AddIntf no pudo inicializarse" but all that I've got was VideoLAN wiki page where I can't found any more information except the code I've copied
Sorry for my English
Phil
unfortunatelly, I'm bad in English so may be I haven't understood some pieces of information from VideoLAN wiki. More that, I sure that somewhere in this forum there is a topic about my problem, but I can't find it. Finally, I don't know if I'm writing to correct thread
Back to my problem:
I've read information at http://wiki.videolan.org/LibVLC_Visual_C . I realized that I have to copy libvlc.dll, libvlccore.dll and Plugins folder to my Debug directory. So I copied all *.dll files that I've found in VLC directory, including libvlc.dll, libvlccore.dll and Plugins folder. Then I've created console project in my Visual Microsoft C++ 2008 Express and copied the code of vlc.h and testvlcconsole.cpp. After running this project I've seen that method loadLibrary(libreria) had returned that libvlc.dll hadn't loaded. But that isn't a problem - I've solved it by adding those *.dll files and Plugins folder to the directory where testvlcconsole.cpp is. After that libvlc.dll was included successfully but in method int initLib(LPWSTR libreria) the first if-clause
if ((VLC_AddIntf = (_VLC_ADDINTF) GetProcAddress(libvlc, "VLC_AddIntf")) == NULL)
return funcionFalla("VLC_AddIntf");
returned FUNCTIONFALLA. I do not know what I should do to solve this problem. I tried to google "La funcion VLC_AddIntf no pudo inicializarse" but all that I've got was VideoLAN wiki page where I can't found any more information except the code I've copied
Sorry for my English
Phil