Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, OnDriveStatusChanged not firing... at International Chat: Software related forum; I need to know if there is a disc in the cd drive. When I tried to use OnDriveStatusChanged it does not seem to be firing. I am using c# and have all other events that I have tried are working. Is there a better way of determining if there


Reply
 
Thread Tools
Old 21-10-2004   #1 (permalink)
jdk
New on Forum
 
Join Date: Aug 2004
Posts: 3
OnDriveStatusChanged not firing...

I need to know if there is a disc in the cd drive. When I tried to use OnDriveStatusChanged it does not seem to be firing.

I am using c# and have all other events that I have tried are working.

Is there a better way of determining if there is a disc in the drive and knowing when a new one is inserted?

Below is the relevant protions of my code that I tried and did not work:

Code:
drive.EnableStatusCallback(NEROLib.NERO_DRIVESTATUS_TYPE.NDT_DISC_CHANGE, true); 

drive.OnStatusChanged += new NEROLib._INeroDriveEvents_OnDriveStatusChangedEventHandler(drive_OnDriveStatusChanged);

private void drive_OnDriveStatusChanged(NEROLib.NERO_DRIVESTATUS_RESULT driveStatus)
{
    Console.Writeline("Event fired");
}
Thanks for your help,

Joe
jdk is offline   Reply With Quote
Old 21-10-2004   #2 (permalink)
Nero Developer
 
Join Date: Oct 2003
Posts: 605
Actually, you should only use OnDriveStatusChanged event if you want to be notified when a disc is inserted or removed, but even this will only work if disc change notification is enabled in Windows itself. Otherwise, you would have to do the polling.

To know if a disc is currently present you can use a DeviceReady property of NeroDrive. True means the disc is present, while false means disc is not present or some other error.
alexp is offline   Reply With Quote
Old 21-10-2004   #3 (permalink)
jdk
New on Forum
 
Join Date: Aug 2004
Posts: 3
Re: OnDriveStatusChanged not firing...

Thank you for your reply! That is exactly what I needed.

The StatusCallback thing makes sence, I didnt even think about that.
jdk is offline   Reply With Quote
 
Reply


If you can't find where you are looking for, then become a member and get an answer fast! We have thousands of people online every moment of the day to help you! Click here



Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OnDriveStatusChanged scrano Nero SDK Discussion Forum 6 14-01-2006 13:38
NeroDrive.OnDriveStatusChanged is silent yanush Nero SDK Discussion Forum 4 15-07-2005 18:38
The Firing Poo From A Butt Into A Moving Toilet Game - No, Really!!!! Womble CD Freaks Living Room 4 18-06-2005 10:19
Nerocom + c# + firing events to display Curtis Nero SDK Discussion Forum 5 26-03-2004 17:58


All times are GMT +2. The time now is 06:47.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0