Solved

Burn CD programatically - Win XP

Posted on 2011-03-15
3
517 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

738 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