Click here to Skip to main content
15,921,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmultiple return values Pin
manusha8-Sep-03 6:45
manusha8-Sep-03 6:45 
GeneralRe: multiple return values [C#] Pin
Dominik Reichl8-Sep-03 7:04
Dominik Reichl8-Sep-03 7:04 
GeneralUDP client implementation Pin
NewHSKid8-Sep-03 6:39
NewHSKid8-Sep-03 6:39 
GeneralRe: UDP client implementation Pin
geo_m9-Sep-03 7:40
geo_m9-Sep-03 7:40 
GeneralDocument/view stops working with CSplitterWnd... Pin
iNsAn1tY8-Sep-03 6:05
iNsAn1tY8-Sep-03 6:05 
GeneralRe: Document/view stops working with CSplitterWnd... Pin
iNsAn1tY8-Sep-03 23:20
iNsAn1tY8-Sep-03 23:20 
GeneralCD ROM detection Pin
Nigel Gooch8-Sep-03 5:54
Nigel Gooch8-Sep-03 5:54 
GeneralRe: CD ROM detection Pin
David Crow8-Sep-03 8:03
David Crow8-Sep-03 8:03 
You should be able to extrapolate from this:

bool IsMediaPresent( void )
{
    MCI_OPEN_PARMS   mciOpen   = {0};
    MCI_STATUS_PARMS mciStatus = {0};
    MCIERROR         mciError;
 
    // open the CD device
    mciOpen.lpstrDeviceType = "cdaudio";
 
    mciError = mciSendCommand(NULL, MCI_OPEN, MCI_OPEN_TYPE, (DWORD) ((LPVOID) &mciOpen));
    if (0 == mciError)
    {
        mciStatus.dwItem = MCI_STATUS_MEDIA_PRESENT;
 
        mciError = mciSendCommand(mciOpen.wDeviceID, MCI_STATUS, MCI_STATUS_ITEM, (DWORD) ((LPVOID) &mciStatus));
         
        // close the device
        mciError = mciSendCommand(mciOpen.wDeviceID, MCI_CLOSE, 0, NULL);
    }
 
    return (1 == mciStatus.dwReturn);
}

GeneralRe: CD ROM detection Pin
Nigel Gooch8-Sep-03 21:39
Nigel Gooch8-Sep-03 21:39 
Generalattach the dialog to the tab Pin
Jeef8-Sep-03 5:33
Jeef8-Sep-03 5:33 
GeneralRe: attach the dialog to the tab Pin
Jeef8-Sep-03 16:06
Jeef8-Sep-03 16:06 
Generalerror in executing c++ code Pin
ranjjj8-Sep-03 4:58
ranjjj8-Sep-03 4:58 
GeneralRe: error in executing c++ code Pin
David Crow8-Sep-03 5:43
David Crow8-Sep-03 5:43 
GeneralRe: error in executing c++ code Pin
Michael P Butler8-Sep-03 6:07
Michael P Butler8-Sep-03 6:07 
GeneralRe: error in executing c++ code Pin
ranjjj8-Sep-03 18:09
ranjjj8-Sep-03 18:09 
GeneralRe: error in executing c++ code Pin
Michael P Butler9-Sep-03 9:34
Michael P Butler9-Sep-03 9:34 
GeneralChange color group box border Pin
JensB8-Sep-03 4:33
JensB8-Sep-03 4:33 
GeneralRe: Change color group box border Pin
valikac8-Sep-03 9:57
valikac8-Sep-03 9:57 
GeneralRe: Change color group box border Pin
JensB9-Sep-03 2:24
JensB9-Sep-03 2:24 
GeneralRe: Change color group box border Pin
valikac9-Sep-03 20:04
valikac9-Sep-03 20:04 
GeneralCPen with thick dotted lines Pin
BadJerry8-Sep-03 3:31
BadJerry8-Sep-03 3:31 
GeneralRe: CPen with thick dotted lines Pin
David Crow8-Sep-03 4:15
David Crow8-Sep-03 4:15 
GeneralRe: CPen with thick dotted lines Pin
BadJerry8-Sep-03 4:32
BadJerry8-Sep-03 4:32 
Generaldatabase with SDI Pin
coda_x8-Sep-03 3:19
coda_x8-Sep-03 3:19 
GeneralRe: database with SDI Pin
imsniper8-Sep-03 3:29
imsniper8-Sep-03 3:29 

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.