| |||||||
| Commercial message | |
| | |
|
![]() |
| | Thread Tools |
| | #1 (permalink) |
| 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");
} Joe |
| | |
| | #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. |
| | |
| |
| |
![]() |
| 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 | |
| |
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 |