Can't burn the CD/DVD
-
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'.
-
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'.
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
-
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'.
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
-
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'.