tags:

views:

585

answers:

3

I need to burn CD/DVD disks from my C++ program. Can you recommend me a method?

Edit: The platform is Windows.

+3  A: 

Why not call a cdrecord or growisofs or whatever console utility?

That's easy, doesn't requires anything, just drag that small executable with you. They are also known to work just fine.

alamar
Who said anything about UNIX/Linux?
foljs
Windows port of cdrecord does exists. I guess I'll try it.
Sergey Skoblikov
+1  A: 

On windows you can use the "Image Mastering API".

Check it out here

Scott Wisniewski
+2  A: 

On Windows, I have previously used the IMAPI2 interface very successfully. This site gives a really good set of sample code for this. You may need to extensively modify the code for your implementation, but it works, and works well.

One thing about the IMAPI2 interface; it's what you pretty much need to use if you're going to be writing to DVDs, as previous iterations of the IMAPI interface had inconsistent handling of writing to DVDs.

McWafflestix
I've learned that IMAPI2 might be unavailable on XP. Darn.
Sergey Skoblikov
Microsoft has a patch or hotfix or whatever they call them for running IMAPI2 on XP. I've used it, and it works fine.
McWafflestix
I'll use IMAPI2. Thank you for advice.
Sergey Skoblikov
You're welcome; it worked well for us; hope you have similar success.
McWafflestix