c - A cross-platform manner to create a process -


i need launch vlc c program, , find cross-platform manner so.

of course, know going use 2 different functions (fork , createprocess) linux , windows. don't know how can launch vlc windows. reading official documentation here saw have use absolute path of executable file. how can retrieve absolute path of directory vlc has been installed?


i imagine code this:

#ifdef windows // use createprocess #else // use fork #endif 

what don't know yet how can dynamically retrieve path of vlc.


update

maybe found alternative way obtain same result. it's little bit more tricky should work. libvlc provides function play media file directly c code. here link official documentation


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -