Click here to Skip to main content
15,923,909 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Multilingual Support - MessageBox Problem Pin
Waldermort24-Nov-06 17:23
Waldermort24-Nov-06 17:23 
GeneralRe: Multilingual Support - MessageBox Problem Pin
dungpapai26-Nov-06 15:38
dungpapai26-Nov-06 15:38 
AnswerRe: Multilingual Support - MessageBox Problem Pin
CPallini24-Nov-06 22:46
mveCPallini24-Nov-06 22:46 
GeneralRe: Multilingual Support - MessageBox Problem Pin
dungpapai26-Nov-06 15:36
dungpapai26-Nov-06 15:36 
GeneralRe: Multilingual Support - MessageBox Problem Pin
CPallini26-Nov-06 21:17
mveCPallini26-Nov-06 21:17 
QuestionHow can I detect whether the tray of CD drive is open or close by program? Pin
monkinrain24-Nov-06 13:18
monkinrain24-Nov-06 13:18 
AnswerRe: How can I detect whether the tray of CD drive is open or close by program? Pin
Michael Dunn24-Nov-06 13:46
sitebuilderMichael Dunn24-Nov-06 13:46 
GeneralRe: How can I detect whether the tray of CD drive is open or close by program? Pin
monkinrain24-Nov-06 19:27
monkinrain24-Nov-06 19:27 
Hi,
IIRC it could be done with use of DeviceIoControl with IOCTL_STORAGE_CHECK_VERIFY and IOCTL_STORAGE_EJECT_MEDIA functions.
Anyway, you should find some information about it in DeviceIoControl function reference and its related articles.

Regards

================================================================================

anssi wrote:
If now it was open, then it will be closed.
And it was close, then it will be opened.


Try mciSendCommand. I remember doing it sometime back, don't remember exactly how I did it.



anssi wrote:
mailto:theanssi@naver.com


You are inviting spam by putting your mail ID like this.

================================================================================

Thanks for giving a reply, but I already know MCI command.

What I want is how to detect the state of which the tray is open or close whether there is a CD in the tray.

I also tried the method using MCI command, but the method was restricted because could check the state only there is a CD in the tray.


Please help me in detail as possible~~~


Studying English and Programming...

test

QuestionError?? Pin
Larsson24-Nov-06 12:13
Larsson24-Nov-06 12:13 
AnswerRe: Error?? Pin
Mark Salsbery24-Nov-06 12:20
Mark Salsbery24-Nov-06 12:20 
GeneralRe: Error?? Pin
Larsson24-Nov-06 12:22
Larsson24-Nov-06 12:22 
GeneralRe: Error?? Pin
Mark Salsbery24-Nov-06 12:27
Mark Salsbery24-Nov-06 12:27 
GeneralRe: Error?? Pin
Larsson24-Nov-06 12:30
Larsson24-Nov-06 12:30 
GeneralRe: Error?? Pin
Mark Salsbery24-Nov-06 12:33
Mark Salsbery24-Nov-06 12:33 
GeneralRe: Error?? Pin
Larsson24-Nov-06 12:35
Larsson24-Nov-06 12:35 
GeneralRe: Error?? Pin
Mark Salsbery24-Nov-06 12:40
Mark Salsbery24-Nov-06 12:40 
GeneralRe: Error?? Pin
George L. Jackson24-Nov-06 12:35
George L. Jackson24-Nov-06 12:35 
GeneralRe: Error?? Pin
Larsson24-Nov-06 12:39
Larsson24-Nov-06 12:39 
GeneralRe: Error?? Pin
George L. Jackson24-Nov-06 12:40
George L. Jackson24-Nov-06 12:40 
GeneralRe: Error?? Pin
Larsson24-Nov-06 12:42
Larsson24-Nov-06 12:42 
GeneralRe: Error?? Pin
George L. Jackson24-Nov-06 12:42
George L. Jackson24-Nov-06 12:42 
GeneralRe: Error?? Pin
Larsson24-Nov-06 12:44
Larsson24-Nov-06 12:44 
GeneralRe: Error?? Pin
George L. Jackson24-Nov-06 12:51
George L. Jackson24-Nov-06 12:51 
GeneralRe: Error?? Pin
Larsson24-Nov-06 12:56
Larsson24-Nov-06 12:56 
GeneralRe: Error?? Pin
CPallini24-Nov-06 21:30
mveCPallini24-Nov-06 21:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.