Click here to Skip to main content
15,880,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCHANGE THE POSITION OF CONTROL OR BUTTON Pin
johnjitu27-May-09 21:54
johnjitu27-May-09 21:54 
AnswerRe: CHANGE THE POSITION OF CONTROL OR BUTTON Pin
Chandrasekharan P27-May-09 22:09
Chandrasekharan P27-May-09 22:09 
QuestionRe: CHANGE THE POSITION OF CONTROL OR BUTTON Pin
CPallini27-May-09 22:17
mveCPallini27-May-09 22:17 
QuestionRe: CHANGE THE POSITION OF CONTROL OR BUTTON Pin
«_Superman_»27-May-09 22:21
professional«_Superman_»27-May-09 22:21 
QuestionHow to get the Friendly name of the removable drive by the Drive letter ? Pin
Jacobb Michael27-May-09 20:45
Jacobb Michael27-May-09 20:45 
AnswerRe: How to get the Friendly name of the removable drive by the Drive letter ? Pin
Stuart Dootson27-May-09 22:24
professionalStuart Dootson27-May-09 22:24 
GeneralRe: How to get the Friendly name of the removable drive by the Drive letter ? Pin
Jacobb Michael27-May-09 23:52
Jacobb Michael27-May-09 23:52 
GeneralRe: How to get the Friendly name of the removable drive by the Drive letter ? Pin
Stuart Dootson28-May-09 1:03
professionalStuart Dootson28-May-09 1:03 
Bet you can get that using WMI.

I use WMI Explorer[^] to explore what information there is in the WMI database for my system. I just plugged in my flash drive, and it seems to have a 'friendly name' in the Caption property of its Win32_DiskDrive instance.

This VBScript (you can run it from the command-line with cscript filename.vbs) can be used to retrieve that - the C++ equivalent is straightforward, but long-winded.

Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
Set drives = objWMIService.ExecQuery("Select * FROM Win32_DiskDrive")
For Each drive in drives
 WScript.StdOut.WriteLine drive.caption
Next


Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: How to get the Friendly name of the removable drive by the Drive letter ? Pin
Jacobb Michael28-May-09 2:30
Jacobb Michael28-May-09 2:30 
GeneralRe: How to get the Friendly name of the removable drive by the Drive letter ? Pin
Stuart Dootson28-May-09 2:32
professionalStuart Dootson28-May-09 2:32 
Questionhow can i find file in subFolder? Pin
002comp27-May-09 20:34
002comp27-May-09 20:34 
AnswerRe: how can i find file in subFolder? Pin
Nuri Ismail27-May-09 20:59
Nuri Ismail27-May-09 20:59 
AnswerRe: how can i find file in subFolder? Pin
«_Superman_»27-May-09 22:16
professional«_Superman_»27-May-09 22:16 
GeneralRe: how can i find file in subFolder? Pin
002comp27-May-09 23:24
002comp27-May-09 23:24 
AnswerRe: how can i find file in subFolder? Pin
Hamid_RT27-May-09 23:25
Hamid_RT27-May-09 23:25 
AnswerRe: how can i find file in subFolder? Pin
Michael Schubert28-May-09 0:54
Michael Schubert28-May-09 0:54 
Questiondelete( ) Pin
vital_parsley200027-May-09 20:18
vital_parsley200027-May-09 20:18 
AnswerRe: delete( ) Pin
CPallini27-May-09 21:08
mveCPallini27-May-09 21:08 
AnswerRe: delete( ) Pin
Stuart Dootson27-May-09 22:13
professionalStuart Dootson27-May-09 22:13 
AnswerRe: delete( ) Pin
Rajesh R Subramanian27-May-09 22:32
professionalRajesh R Subramanian27-May-09 22:32 
Questionlock Mouse and keyboard in c++ to use it in java through JNI Pin
jsfgeeks@gmail.com27-May-09 20:10
jsfgeeks@gmail.com27-May-09 20:10 
AnswerRe: lock Mouse and keyboard in c++ to use it in java through JNI Pin
Rajesh R Subramanian28-May-09 1:35
professionalRajesh R Subramanian28-May-09 1:35 
AnswerRe: lock Mouse and keyboard in c++ to use it in java through JNI Pin
paul_parero29-May-09 21:50
paul_parero29-May-09 21:50 
GeneralRe: lock Mouse and keyboard in c++ to use it in java through JNI Pin
jsfgeeks@gmail.com1-Jun-09 19:11
jsfgeeks@gmail.com1-Jun-09 19:11 
QuestionPen Drive Formate Pin
Davitor27-May-09 19:26
Davitor27-May-09 19:26 

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.