AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones de grabación de CD y DVD
  • Burning a data CD
  • Burning an audio CD
BurnerAddDirectory (Example)
Burning a data CD
The following example is used to add the files found in a directory into the compilation (data CD).
// Burn a data CD
BurnerMediaType(mediaType_CD_ROM_XA)
// Add the files found in "C:\MyDirectory"
// The ProcAddFile procedure will be automatically called for each added file
ResAdd is boolean
ResAdd = BurnerAddDirectory("C:\MyDirectory", "", ProcAddFile)
// Error occurred?
IF ResAdd = False THEN
  // Display the error
  Error(ErrorInfo(errMessage))
ELSE
  // Burn the CD
  BurnerSave()
END
// -- Procedure ProcAddFile
// This procedure is called for each added file
// FileDir contains the directory of the added file
// FileName contains the name of the added file
// These parameters are automatically filled
PROCEDURE ProcAddFile(FileDir, FileName)
// Display the file that is currently added in "STC_CurrentFile"
STC_CurrentFile = "File currently added: " + FileDir + FileName
// Add the current file into the compilation
// and continue to list the files
RESULT 1
Burning an audio CD
The following example is used to add the files found in a directory into the compilation (audio CD).
// Burn an audio CD
BurnerMediaType(mediaType_CDDA_CDROM)
// Add the ".WAV" files found in the "C:\MyMusic" directory
ResAdd is boolean
ResAdd = BurnerAddDirectory("C:\MyMusic\*.WAV")  
// Error occurred?
IF ResAdd = False THEN
// Display the error
Error(ErrorInfo(errMessage))
ELSE
// Burn the CD
BurnerSave()
END
Versión mínima requerida
  • Versión 10
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local