Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

detecting dvd drive in C++

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
hairymunky



Joined: Sun Apr 17, 2005 6:50 pm
Posts: 59

PostPosted: Tue May 17, 2005 8:44 pm    Post subject: detecting dvd drive in C++ Reply with quote

Hi all,
Anybody know how to (auto)detect a machines dvd-row/writer in c++ (or c), and also how to mount, unmount and eject the drive once its detected...?

(ie my machine the DVDr is /media/cdrecorder (although its a dvd-writer) and it
is on /dev/hdd) . This information would be sent to a list box in my KDE app.

tia
Graham
_________________
Linux powered Astronomy
Back to top
View user's profile Send private message MSN Messenger
hairymunky



Joined: Sun Apr 17, 2005 6:50 pm
Posts: 59

PostPosted: Sun May 29, 2005 4:45 pm    Post subject: Reply with quote

done it Smile

although it's a bit of a hack just now, Im using "/dev/dvd" for my device and all is fine,
for the meantime Smile
_________________
Linux powered Astronomy
Back to top
View user's profile Send private message MSN Messenger
wiz
LXF regular


Joined: Thu Apr 07, 2005 7:20 pm
Posts: 119
Location: In front of a computer

PostPosted: Sun May 29, 2005 8:36 pm    Post subject: Reply with quote

Yes,yes,yes! But how did you do it?
Back to top
View user's profile Send private message
hairymunky



Joined: Sun Apr 17, 2005 6:50 pm
Posts: 59

PostPosted: Wed Jun 15, 2005 8:20 am    Post subject: Reply with quote

Using dvdread library and passing in "/dev/dvd" as the device Smile
_________________
Linux powered Astronomy
Back to top
View user's profile Send private message MSN Messenger
wiz
LXF regular


Joined: Thu Apr 07, 2005 7:20 pm
Posts: 119
Location: In front of a computer

PostPosted: Wed Jun 15, 2005 5:34 pm    Post subject: Reply with quote

Thanks.. I think Confused
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast