ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / CD and DVD burning functions
  • 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
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help