I got advice to use this message to determine if the cd rom had been ejected or not. The code sample I got came from ms help site and so was in win32. In the class expert there is no WM_DEVICECHANGE message for me to automatically use from the tree. Thats fine so I create it manually. However it keeps on coming up with an error saying that the ev is not recognized. in the table I enter EV_WM_DEVICECHANGE and for the member function I enter EvDeviceChange. This should all be correct. The class is a dialog class. Can you help or is there another way of being notified of the cdrom being ejected and inserted.
Start Free Trial