Click here to Skip to main content
15,900,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Running 10 threads at a time Pin
neha.agarwal272-Aug-07 2:09
neha.agarwal272-Aug-07 2:09 
GeneralRe: Running 10 threads at a time Pin
Russell'2-Aug-07 2:27
Russell'2-Aug-07 2:27 
GeneralRe: Running 10 threads at a time Pin
Mark Salsbery2-Aug-07 8:31
Mark Salsbery2-Aug-07 8:31 
QuestionWM_INITDIALOG in VS 2005 Pin
vipin_nvk1-Aug-07 22:20
vipin_nvk1-Aug-07 22:20 
AnswerRe: WM_INITDIALOG in VS 2005 Pin
Anurag Gandhi1-Aug-07 22:51
professionalAnurag Gandhi1-Aug-07 22:51 
AnswerRe: WM_INITDIALOG in VS 2005 Pin
KarstenK1-Aug-07 23:49
mveKarstenK1-Aug-07 23:49 
QuestionHow can i get Partition name from partition number? Pin
Banks K1-Aug-07 22:03
Banks K1-Aug-07 22:03 
AnswerRe: How can i get Partition name from partition number? Pin
Naveen1-Aug-07 23:48
Naveen1-Aug-07 23:48 
the volume name can be found out from the from GetVolumeInformation(). This function requires the drive letter not the partion number.If you manage to get the drive letter, you can get the volume name.

If there is no staright way for doing this, you can use the below method.

You can use the QueryDosDevice() function to find the diive letter from parition name. for eg consider the below code. If 'c' is the first partion, the tcDeviceName will contain \Device\HarddiskVolume1. and if you give 'd:', it will be \Device\HarddiskVolume2 and so on
TCHAR tcDeviceName[50];
QueryDosDevice( _T("C:"), tcDeviceName, 50 );

suppose you got 1 in the PARTITION_INFORMATION. then make string like "\Device\HarddiskVolume1". Now starting from A to Z, put a loop and call the QueryDosDevice. Compare the device name with the "\Device\HarddiskVolume1". If it matches, you have the drive letter.



QuestionInterrupts in windows Pin
zon_cpp1-Aug-07 21:35
zon_cpp1-Aug-07 21:35 
AnswerRe: Interrupts in windows Pin
Hamid_RT1-Aug-07 21:40
Hamid_RT1-Aug-07 21:40 
Questionhow can i control the sound of left and right speaker Pin
rajneshmalik1-Aug-07 21:11
rajneshmalik1-Aug-07 21:11 
AnswerRe: how can i control the sound of left and right speaker Pin
Hamid_RT1-Aug-07 21:37
Hamid_RT1-Aug-07 21:37 
QuestionAvoid using .ini files Pin
vipin_nvk1-Aug-07 20:56
vipin_nvk1-Aug-07 20:56 
AnswerRe: Avoid using .ini files Pin
Peter Weyzen1-Aug-07 21:03
Peter Weyzen1-Aug-07 21:03 
AnswerRe: Avoid using .ini files Pin
CPallini1-Aug-07 21:06
mveCPallini1-Aug-07 21:06 
AnswerRe: Avoid using .ini files Pin
Hamid_RT1-Aug-07 21:23
Hamid_RT1-Aug-07 21:23 
AnswerRe: Avoid using .ini files Pin
toxcct1-Aug-07 22:15
toxcct1-Aug-07 22:15 
GeneralRe: Avoid using .ini files Pin
mandanani1-Aug-07 22:23
mandanani1-Aug-07 22:23 
GeneralRe: Avoid using .ini files Pin
toxcct1-Aug-07 22:26
toxcct1-Aug-07 22:26 
GeneralRe: Avoid using .ini files Pin
mandanani1-Aug-07 23:35
mandanani1-Aug-07 23:35 
GeneralRe: Avoid using .ini files Pin
Anurag Gandhi1-Aug-07 22:25
professionalAnurag Gandhi1-Aug-07 22:25 
AnswerRe: Avoid using .ini files Pin
Anurag Gandhi1-Aug-07 22:17
professionalAnurag Gandhi1-Aug-07 22:17 
AnswerRe: Avoid using .ini files Pin
#realJSOP1-Aug-07 23:48
professional#realJSOP1-Aug-07 23:48 
AnswerRe: Avoid using .ini files Pin
Mark Salsbery2-Aug-07 8:49
Mark Salsbery2-Aug-07 8:49 
Questionhow to rebuild scilexer.dll after adding new language Pin
mirraa1-Aug-07 20:39
mirraa1-Aug-07 20:39 

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.