This is a work in progress, but I just uploaded it to my web space for
someone else so I thought I'd share it here as there was some interest in
the XPBurn component demo I linked to last week.
It's a data cd burning program based on the IMAPI Wrapper from:
http://www.vbaccelerator.com/home/NE...g_CDs/index.as
p
This wrapper is more streamlined than the XPBurn. You have to do more
work yourself - but it has more of the Image Mastering API exposed than
the XPBurn component so you don't have to dig around in the c# as much
when it fails.
One bug in the wrapper is that the "erase disc complete" event never
fires. I've been trying to fix it, but no luck yet. You can tell when the
erase finishes anyway as the erase thread stops and the cd becomes blank
and the drive becomes idle, but it would be nice if the wrapper was
complete. Let me know if you can fix it. I'll ask some c# peeps to have a
look if I can't figure it out.
info relevant to problem:
http://msdn.microsoft.com/library/de...l=/library/en-
us/devio/base/imapi_reference.asp
The NotifyEraseComplete event is the only IDiscMasterProgressEvent that
is related to an iDiscRecorder method rather than an iDiscMaster method.
And it's the only one that doesn't work.
I'll finish the program soon.
If anyone has found a way to burn data (in my case a database) to cd that
doesn't involve nero, the xp burning wizard or some hideously expensive
control then I'd be interested in hearing it. I'll be able to use the
IMAPIWrapper in my projects once I've got all the possible errors sorted
out - I don't want my apps crashing if someone puts a cd in upside down
with some dumb error.
Oh, program is here:
http://www.svenedin.pwp.blueyonder.c...rner/Stuff.zip
The zip has the XPBurn component in as well, ignore it...