FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
|
#1
|
||||
|
||||
Saber que tipo de Drive es con un TDriveComboBox
Hola, mi pregunta es como saber si el drive seleccionado en el DrivecomboBox es una unidad de Cd o un disco extrible.
que valor retorna o que propiedad uso para saber esto. Gracias |
#2
|
|||
|
|||
Utiliza la funcion GetDriveType, debes incluir la ShellApi.
Ejemplo:
Saludos desde Concepcion-Chile |
#3
|
||||
|
||||
La API GetDriveType se maneja así: (Ayuda de Builder)
Cita:
Saludos. |
#4
|
||||
|
||||
Ok gracias a los dos, voy a probar.
|
#5
|
||||
|
||||
hey? la manera de usarlo seria asi:
ya tengo un DriveComboBox llamado D_Drive; seria aglo asi: AnsiString x = D_Drive->Drive; if( ( GetDriveType( (x + "://").c_str() ) != DRIVE_CDROM ) { ... } asi lo puedo usar? para la memoria usb se usa el de: DRIVE_REMOVABLE? gracias |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Saber el tipo de disco | MON___ | API de Windows | 1 | 27-12-2007 23:21:12 |
se puede saber el tipo de un field de mysql | seba_cipo | MySQL | 2 | 12-05-2006 14:36:15 |
como saber el tipo de datos de un campo | miguelml | Varios | 4 | 17-11-2005 08:36:17 |
Saber el tipo de acceso a ficheros compartidos | Javi2 | Varios | 0 | 18-08-2004 11:14:35 |
Como saber el tipo de acceso a una carpeta | Javi2 | Varios | 3 | 22-07-2004 11:56:44 |
|