title
Products            Buy            Support Forum            Professional            About            Codec Central
 

How can you tell if the user pressed cancel?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MattWarner
    • Feb 2005
    • 5

    How can you tell if the user pressed cancel?

    On our server we have a process which goes through directories and converts mp3 files if they are not in the correct format.

    It converts to a temp directory and then overwrites the original if the conversion was successful.

    If somebody presses the cancel button during the conversion the following is true

    if (dMC.WasConvError == 0 && File.Exists(destFile))

    and so we overwrite the old one

    BUT the new file is not complete so we lose data.

    How can we tell when this has happened?
  • Spoon
    Administrator
    • Apr 2002
    • 44358

    #2
    Re: How can you tell if the user pressed cancel?

    The new dMC should set wasconverror to 1 for a cancel - if you get the error it will say cancel?
    Spoon
    www.dbpoweramp.com

    Comment

    • MattWarner
      • Feb 2005
      • 5

      #3
      Re: How can you tell if the user pressed cancel?

      Thanks Spoon,

      I was developing with a previous version and found the problem. Then I updated to the new one and didn't see a new .WasCancelled property so posted this thread before testing it.

      Comment

      Working...

      ]]>