I have a Dell laptop running Windows XP. Sometimes I can't eject the DVD.
The easiest way to solve this problem is by disabling and enabling the DVD-ROM drive from the device manager.
Just right click on My Computer, select Hardware, find the DVD-ROM drive, select disable, then enable. That's all.