Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Can't burn the CD/DVD

Can't burn the CD/DVD

Scheduled Pinned Locked Moved C / C++ / MFC
questiontoolshelptutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vijay_aroli
    wrote on last edited by
    #1

    Hello all, I am trying to provide CD/DVD burning facility to my application. I have decided to use Magic CD/DVD burning component. has anyone used this component before? I am currently using the demo of the component. But I am not able to write data onto the CDs. I don't know what mistake I am doing. Can anyone point out what is the mistake that i am doing? here is the code snippet. CMCDBurner *pObj;//CMCDBurner is a class that gives us tools for writing data on to CDs. pObj = new CMCDBurner; void (__stdcall *pWriteDone)(int , bool , void *); pWriteDone = &(CMCDBurner::WriteDone); pObj->InsertFile("\\", "c:\\mcdbc.log"); //Add files to burn. pObj->Prepare(); //Prepare data for burning. pObj->Burn(pWriteDone,NULL); //Burn data onto the CD/DVD The example source that is provided with the Demo is something similar to the one written above. surprisingly, it can write data and my application cannot. so i am sure that i am doing the mistake. Can anyone help??? thanks in advance.

    Regards, Vijay. God may not give us what we 'want', but he surely gives us what we 'need'.

    D H T 3 Replies Last reply
    0
    • V vijay_aroli

      Hello all, I am trying to provide CD/DVD burning facility to my application. I have decided to use Magic CD/DVD burning component. has anyone used this component before? I am currently using the demo of the component. But I am not able to write data onto the CDs. I don't know what mistake I am doing. Can anyone point out what is the mistake that i am doing? here is the code snippet. CMCDBurner *pObj;//CMCDBurner is a class that gives us tools for writing data on to CDs. pObj = new CMCDBurner; void (__stdcall *pWriteDone)(int , bool , void *); pWriteDone = &(CMCDBurner::WriteDone); pObj->InsertFile("\\", "c:\\mcdbc.log"); //Add files to burn. pObj->Prepare(); //Prepare data for burning. pObj->Burn(pWriteDone,NULL); //Burn data onto the CD/DVD The example source that is provided with the Demo is something similar to the one written above. surprisingly, it can write data and my application cannot. so i am sure that i am doing the mistake. Can anyone help??? thanks in advance.

      Regards, Vijay. God may not give us what we 'want', but he surely gives us what we 'need'.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      So which function call is failing?


      "A good athlete is the result of a good and worthy opponent." - David Crow

      "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

      1 Reply Last reply
      0
      • V vijay_aroli

        Hello all, I am trying to provide CD/DVD burning facility to my application. I have decided to use Magic CD/DVD burning component. has anyone used this component before? I am currently using the demo of the component. But I am not able to write data onto the CDs. I don't know what mistake I am doing. Can anyone point out what is the mistake that i am doing? here is the code snippet. CMCDBurner *pObj;//CMCDBurner is a class that gives us tools for writing data on to CDs. pObj = new CMCDBurner; void (__stdcall *pWriteDone)(int , bool , void *); pWriteDone = &(CMCDBurner::WriteDone); pObj->InsertFile("\\", "c:\\mcdbc.log"); //Add files to burn. pObj->Prepare(); //Prepare data for burning. pObj->Burn(pWriteDone,NULL); //Burn data onto the CD/DVD The example source that is provided with the Demo is something similar to the one written above. surprisingly, it can write data and my application cannot. so i am sure that i am doing the mistake. Can anyone help??? thanks in advance.

        Regards, Vijay. God may not give us what we 'want', but he surely gives us what we 'need'.

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        On the codeproject is an article is about convert pdf to text but on that article is source code of Nero maybe it will be helpful for you.


        WhiteSky


        1 Reply Last reply
        0
        • V vijay_aroli

          Hello all, I am trying to provide CD/DVD burning facility to my application. I have decided to use Magic CD/DVD burning component. has anyone used this component before? I am currently using the demo of the component. But I am not able to write data onto the CDs. I don't know what mistake I am doing. Can anyone point out what is the mistake that i am doing? here is the code snippet. CMCDBurner *pObj;//CMCDBurner is a class that gives us tools for writing data on to CDs. pObj = new CMCDBurner; void (__stdcall *pWriteDone)(int , bool , void *); pWriteDone = &(CMCDBurner::WriteDone); pObj->InsertFile("\\", "c:\\mcdbc.log"); //Add files to burn. pObj->Prepare(); //Prepare data for burning. pObj->Burn(pWriteDone,NULL); //Burn data onto the CD/DVD The example source that is provided with the Demo is something similar to the one written above. surprisingly, it can write data and my application cannot. so i am sure that i am doing the mistake. Can anyone help??? thanks in advance.

          Regards, Vijay. God may not give us what we 'want', but he surely gives us what we 'need'.

          T Offline
          T Offline
          toolsche
          wrote on last edited by
          #4

          Hi, Did you maybe forget to select the device before?

          pObj->SelectDevice(0)

          for the first device. Greets, toolsche

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups