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 CD
BurnerSave (Example)
Burning a CD
The following example is used to burn the files found in the compilation. The burner door will be automatically opened at the end of burn process. The "BurnCDProc" procedure is regularly called during the burn process. The parameters of this procedure are automatically filled.
// Actual CD burning
// The burner door will be automatically opened at the end of burn process
ResBurn is boolean
ResBurn = BurnerSave(burnerAutoEject, ProcBurnCD)
// Error occurred?
IF ResBurn = False THEN
// Display the error
Error(ErrorInfo(errMessage))
ELSE
// Burn process started
Info("Burn operation in progress")
END
// -- Procedure ProcBurnCD // --
// This procedure is regularly called during the burn process
// The parameters are automatically filled
PROCEDURE ProcBurnCD(BurnStatus, BurnMessage, Param1)
// Event that occurred?
SWITCH BurnStatus
// The burn process was canceled
CASE burnerNotificationCancel
IF YesNo("Do you want to cancel the burn operation?") THEN
RETURN True
END
RESULT False
 
// Error detected
CASE burnerNotificationError
Error("An error occurred", BurnMessage)
 
// Burn process completed
CASE burnerNotificationEndBurning
IF Param1 = 0 THEN
Info("CD burning done")
ELSE
Error("Error during the burn operation", BurnMessage)
END
...
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