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

C / C++ / MFC

 
AnswerRe: Child Dialog flashes and hides. Pin
Naveen19-Jul-09 19:17
Naveen19-Jul-09 19:17 
GeneralRe: Child Dialog flashes and hides. Pin
Chandrasekharan P19-Jul-09 19:42
Chandrasekharan P19-Jul-09 19:42 
Questionhow can i auto detect the CD drive? Pin
MahaKh19-Jul-09 19:02
MahaKh19-Jul-09 19:02 
AnswerRe: how can i auto detect the CD drive? Pin
«_Superman_»19-Jul-09 19:23
professional«_Superman_»19-Jul-09 19:23 
GeneralRe: how can i auto detect the CD drive? Pin
MahaKh19-Jul-09 20:39
MahaKh19-Jul-09 20:39 
GeneralRe: how can i auto detect the CD drive? Pin
«_Superman_»19-Jul-09 20:57
professional«_Superman_»19-Jul-09 20:57 
GeneralRe: how can i auto detect the CD drive? Pin
MahaKh19-Jul-09 21:05
MahaKh19-Jul-09 21:05 
GeneralRe: how can i auto detect the CD drive? Pin
«_Superman_»19-Jul-09 21:17
professional«_Superman_»19-Jul-09 21:17 
This is what the documentation says -
Bit position 0 is drive A, bit position 1 is drive B, bit position 2 is drive C, and so on.

You can get the available drives using bit manipulation.
if (my_variable & 1)
{
   // Drive A: available
}
if (my_variable & 2)
{
   // Drive B: available
}
if (my_variable & 4)
{
   // Drive C: available
}

You could do this in a loop.
cout << "Available drives -\n";
for (DWORD i = 0; i < 26; ++i)
{
   if (my_variable & (1 << i))
   {
      cout << char(65 + i) << ":\n";
   }
}


«_Superman
I love work. It gives me something to do between weekends.

GeneralRe: how can i auto detect the CD drive? Pin
MahaKh19-Jul-09 21:49
MahaKh19-Jul-09 21:49 
GeneralRe: how can i auto detect the CD drive? Pin
MahaKh19-Jul-09 23:46
MahaKh19-Jul-09 23:46 
Questiontoolbar problem Pin
Member 59031019-Jul-09 18:39
Member 59031019-Jul-09 18:39 
AnswerRe: toolbar problem Pin
S p k 52119-Jul-09 19:08
S p k 52119-Jul-09 19:08 
GeneralRe: toolbar problem Pin
Member 59031019-Jul-09 19:20
Member 59031019-Jul-09 19:20 
AnswerRe: toolbar problem Pin
«_Superman_»19-Jul-09 19:18
professional«_Superman_»19-Jul-09 19:18 
GeneralRe: toolbar problem Pin
Member 59031019-Jul-09 19:22
Member 59031019-Jul-09 19:22 
QuestionConnection MYSql Pin
Davitor19-Jul-09 18:33
Davitor19-Jul-09 18:33 
AnswerRe: Connection MYSql Pin
Stuart Dootson19-Jul-09 21:15
professionalStuart Dootson19-Jul-09 21:15 
QuestionDOM of a browser content using windows program or any window Pin
Jayapal Chandran19-Jul-09 12:38
Jayapal Chandran19-Jul-09 12:38 
AnswerRe: DOM of a browser content using windows program or any window Pin
«_Superman_»19-Jul-09 16:22
professional«_Superman_»19-Jul-09 16:22 
Questionwant to access any windows input elements from a win32 or mfc programw Pin
Jayapal Chandran20-Jul-09 7:30
Jayapal Chandran20-Jul-09 7:30 
QuestionExplorer context menu Pin
shasa200919-Jul-09 10:57
shasa200919-Jul-09 10:57 
AnswerRe: Explorer context menu Pin
Randor 19-Jul-09 11:25
professional Randor 19-Jul-09 11:25 
GeneralRe: Explorer context menu Pin
shasa200919-Jul-09 18:44
shasa200919-Jul-09 18:44 
GeneralRe: Explorer context menu Pin
Randor 19-Jul-09 20:44
professional Randor 19-Jul-09 20:44 
GeneralRe: Explorer context menu Pin
Michael Dunn20-Jul-09 12:45
sitebuilderMichael Dunn20-Jul-09 12:45 

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.