Jump to content

cuoredibue

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by cuoredibue

  1. Thanks to rolfk, ShaunR and ned. Now I have the VLC DLL called libvlccore.dll and libvlc.dll inside the root folder of my project, as you can see from the screenshot. Also the plugin folder of VLC has beed copied inside the root folder of my project. I call the dll from the "Call library function" using for argv a pointer-sized integer, passed as value. And I pass to it a zero. As you can see from the screenshot. I still get error 1097 from the call. Also using Labview2013 IDE. - About the "library name or path" text box in the "Call Library Function" I tried to set the value: * Just with the dll name, as you can see in the screenshot. Not working. Error 1097. * Writing the complete path of the project's root folder, where the dll stays. Not working. Error 1097. * selecting "Specify path on diagram" and adding a wire with the path of the root folder. where the dll stays. And again I get error 1097. Your advice seems to be wise to me, but I am still confused by this unexpected behaviour. Screenshot LibVLC call library function.zip
  2. Hi, I am new here, and new with LV. I am developing a project with LabView 2013 SP1 f5 32bit. On windows 7 and windows 8.1. From my LabView application I need to call a VLC dll library for streaming of a video. VLC is open source and written in C. The first function I need to use has this prototype. libvlc_instance_t * libvlc_new(int argc, int const char *const * argv); And I need to call it with this ‘C’ parameters libvlc_new(0, NULL); It looks simple but I am having headaches with this. This function should return a pointer to the new created instance, but calling libvlc_new() from LV using “call library function†VI returns NULL instead of a valid pointer, which means that an error occurred, therefore the call library function generate error 1097. I placed the libvlc.dll, which contains the funtion libvlc_new(), and the related libvlccore.dll inside the data folder of the project as you can see in the attachment. Also the mp4 file to play is in the data folder. I read on the community forum of LV that I need to create a wrapper in order to pass to a C function an array of pointers (to const char). I tried to do it but it doesn’t work I don’t understand how to create the wrapper to the libvlc_new() function. There are many different opinions and strategy about this on the web, so I feel confused. I just need to call the libvlc_new() with this parameters: libvlc_new(0, NULL). I tried many different option for the parameter setting and also tried the Ned’s solution, but unfortunately it didn’t work for me. Can anyone give me an example about this? Attached you can find the VI that I wrote and that is NOT working. On this VI I am not using any wrapper. Calling 'C style' argv argc from LabView.zip
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.