Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, Files to DVD with NEROLib not working (C#) at International Chat: Software related forum; I have this code, C#, to write a file to a dvd. I quite new to the NERO SDK (not to c# though) and the code doens't work. It ejects the DVD and gives the statuscode user-abort. Any help is appreciated. Thanks in advance. Code:


Reply
 
Thread Tools
Old 12-11-2006   #1 (permalink)
New on Forum
 
Join Date: Nov 2006
Posts: 2
Files to DVD with NEROLib not working (C#)

I have this code, C#, to write a file to a dvd. I quite new to the NERO SDK (not to c# though) and the code doens't work. It ejects the DVD and gives the statuscode user-abort. Any help is appreciated. Thanks in advance.
Code:
private void Burn_Click(object sender, EventArgs e)
{
	try {
		NeroISOTrackClass NeroISO = new NeroISOTrackClass();
		NeroISO.Name = "TEST-DVD";

		NeroFolderClass NeroFolder = new NeroFolderClass();
		NeroISO.RootFolder = NeroFolder;

		NeroFileClass NeroFile = new NeroFileClass();
		NeroFile.Name = "log.txt";
		NeroFolder.Files.Add(NeroFile);

		NeroISO.BurnOptions = NERO_BURN_OPTIONS.NERO_BURN_OPTION_CREATE_ISO_FS;
		Drive = (NeroDrive)Drives.Item(BurnerList.SelectedIndex);
		Drive.OnProgress += new _INeroDriveEvents_OnProgressEventHandler(OnProgress);
		Drive.OnDoneBurn += new _INeroDriveEvents_OnDoneBurnEventHandler(Drive_OnDoneBurn);
		Drive.BurnIsoAudioCD("", "", false, NeroISO, null, null,
			NERO_BURN_FLAGS.NERO_BURN_FLAG_WRITE, 10, NERO_MEDIA_TYPE.NERO_MEDIA_DVD_ANY);
	}
	catch(Exception ex) {
		MessageBox.Show(ex.Message);
	}
}

void Drive_OnDoneBurn(ref NERO_BURN_ERROR StatusCode)
{
	MessageBox.Show(StatusCode.ToString());
}

private void OnProgress(ref int Percentage, ref bool Done)
{
	Progress.Value = Percentage;
}
The Grape is offline   Reply With Quote
Old 11-01-2007   #2 (permalink)
New on Forum
 
Join Date: Nov 2006
Posts: 2
Re: Files to DVD with NEROLib not working (C#)

(bump) Onebody knows? At all?
The Grape is offline   Reply With Quote
 
Reply


If you can't find where you are looking for, then become a member and get an answer fast! We have thousands of people online every moment of the day to help you! Click here



Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PS3 files not working javier26 DVDFab / DVD Region+CSS Free 5 07-06-2008 01:55
could not find NEROlib, missing assembly or reference .. jackdsouza Nero SDK Discussion Forum 0 22-09-2007 06:30
DVD stopped working; CD is working shoelace General Hardware Forum 5 03-11-2006 00:42
Property MediaSupport of type NEROLib.NeroDrive Milivoje Nero SDK Discussion Forum 4 13-09-2006 23:50
SOSW-852S firmware-eeprom working pair of files wanted. Asxetos LiteOn / PLDS/ Sony Burner 2 05-03-2005 11:20


All times are GMT +2. The time now is 07:43.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0