XPBurn RecordDisc function does nothing

  • Thread starter Reuben Gann via DotNetMonster.com
  • Start date
R

Reuben Gann via DotNetMonster.com

Hi,

I'm trying to use the XPBurn component available on MSDN. I have an ArrayList of mp3 objects which have valid paths and I add files like so:

XPBurn.XPBurnCD cd=new XPBurn.XPBurnCD();
foreach(Object obj in mp3list)
{
MP3File mp3;
mp3=(MP3File)obj; cd.AddFile(mp3.GiveNameOnDisk(),mp3.GiveNameOnCD());
}
try
{
cd.RecordDisc(false,true);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}

This code executes (without giving any exceptions), but nothing happens. The cd is never written, the drive never spins up, nothing. The event manager reports that an IMAPI CD Burning COM service was successfully sent a start control, then a running state, then a stop state. I've tested this on two XP Pro systems, one SP1 and one SP2. Both have Nero isntalled, if that matters. Anybody know what's up?

Thanks
 
J

jo0ls

Hi,

I'm trying to use the XPBurn component available on MSDN. I have an
ArrayList of mp3 objects which have valid paths and I add files like
so:

XPBurn.XPBurnCD cd=new XPBurn.XPBurnCD();
foreach(Object obj in mp3list)
{
MP3File mp3;
mp3=(MP3File)obj;
cd.AddFile(mp3.GiveNameOnDisk(),mp3.GiveNameOnCD());
}
try
{
cd.RecordDisc(false,true);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}

This code executes (without giving any exceptions), but nothing
happens. The cd is never written, the drive never spins up, nothing.
The event manager reports that an IMAPI CD Burning COM service was
successfully sent a start control, then a running state, then a stop
state. I've tested this on two XP Pro systems, one SP1 and one SP2.
Both have Nero isntalled, if that matters. Anybody know what's up?

Thanks

late reply, but I just spent a few days figuring out the XPBurn component
and the imapi wrapper from vbaccelerator.com. I was using vb.
I think it is just missing the stage to set the burner drive. My projects
are complete, see the source at planetsourcecode.com search for XPBurn and
vb cd burner. short link: http://tinyurl.com/6j9te
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top