GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Jan-2005, 13:27
Rip7 Rip7 is offline
New Member
 
Join Date: Jan 2005
Posts: 1
Rip7 is on a distinguished road

start videolan program in c/c++


Hello,

When I get a signal at the parallel port I want to start VLC to stream a videofile. And when the signal is gone, I want to stop with streaming.
I can start VLC in the command line and I can pass the correct arguments at startup (not at runtime I think), but how do I kill the process ? fork() and execl() isn't really a solution either I think. Can anybody help me further how I can start/quit VLC the best way ?

Thanks

P.S: And is making a pthread and polling the parallel port to watch for input a good idea ? The code must be cross-platform (there is a pthread library for windows).
  #2  
Old 06-Jan-2005, 23:19
aaroncohn's Avatar
aaroncohn aaroncohn is offline
Regular Member
 
Join Date: Feb 2004
Location: Bay Area, CA.
Posts: 564
aaroncohn is a jewel in the roughaaroncohn is a jewel in the roughaaroncohn is a jewel in the rough
I wanted to wait to see if anyone would answer before I told you that I don't have a clue how to kill the program once you open it programatically.
__________________
-Aaron
 
 

Recent GIDBlogStupid Management Policies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent ! Pls Help Me ! mycashmoney C Programming Language 4 01-Jul-2006 23:49
[TUTORIAL] Calling an external program in C (Linux) dsmith C Programming Language 4 22-Apr-2005 14:30
fltk-2.0 cvs Plumb FLTK Forum 20 13-Nov-2004 08:10
Need help with a C program (Long) McFury C Programming Language 3 29-Apr-2004 21:06
Athlon system locking up on start up. Is it MoBo, Processor, PSU or what? ebolaosu Computer Hardware Forum 8 26-Feb-2004 12:19

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 07:15.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.