Solved

Burn CD programatically - Win XP

Posted on 2011-03-15
3
510 Views
Last Modified: 2012-05-11
I would like to use the ICDBurn interface to burn a CD with data (txt, wmv, etc) programatically.  I am using C++ (VS2005) not MFC and running on Windows XP.  I have seen some examples online and i'm confused so i'm turning here to my EE Guru's.  I would like some sample code that can show me how to check if a recordable   CD/DVD drive is present, point to the path where the data is located, burn the data and return with a status.

Your help is truly appreciated!

Thanks
0
Comment
Question by:arunykand
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 35142538
You'll find a nice article by Paul DiLascia in MSDN Magazine covering that here: http://msdn.microsoft.com/en-us/magazine/cc163992.aspx ("CD Burning and Device Discovery with IMAPI"), the complete source code is available at http://download.microsoft.com/download/1/6/4/164c2a20-aeb0-460f-907d-985d83e86bd4/CQA0404.exe

The only thing it uses from MFC is 'CString', yet I am pretty sure you will be able to replace that one with a std::string easily.
0
 
LVL 7

Expert Comment

by:JimBeveridge
ID: 35144094
Is your app for fun or is it commercial?

I know you said that you want to use the ICDBurn interface, but there's a reason most applications use a 3rd party library. Take a look at StarBurn:
http://www.rocketdivision.com/burn_sdk.html

Even CDBurnerXP, arguably the most popular freeware CD/DVD burning tool, uses the Starburn library.

However, at $1600, the price for the SDK is out of reach for a freeware or hobby project, but it's cheap for a commercial project.

I don't work for Starburn, I'm just familiar with their products.
0
 

Author Closing Comment

by:arunykand
ID: 35153364
Much Appreciated, thanks!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now