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


Commercial message



Nero SDK Discussion Forum Discuss, VB Examples at International Chat: Software related forum; I am trying to write an application to write single files to a DVD using the Nero 1.1 Type Library. I have searched the documentation on the SDK, searched the forum, and searched the Internet, but I cannot see how to do the following: Import the session from a


Reply
 
Thread Tools
Old 24-07-2005   #1 (permalink)
New on Forum
 
Join Date: Jul 2005
Posts: 5
VB Examples

I am trying to write an application to write single files to a DVD using the Nero 1.1 Type Library.

I have searched the documentation on the SDK, searched the forum, and searched the Internet, but I cannot see how to do the following:

Import the session from a DVD.
Write more files to the DVD.

The closest I have come to getting something working is with the following code:

Dim dvdFS As NeroFileSystemDescContainer
Dim isReady As Boolean
Set dvdFS = New NeroFileSystemDescContainer
dvdFS.BurnOptions = NERO_BURN_OPTION_USE_JOLIET
dvdFS.Name2 = "Test"
Dim RootCont As NeroDirectoryContainer
Set RootCont = dvdFS.RootDirectoryContainer
RootCont.AddFile2 "test.txt", "C:\Test.txt", -1, -1
isReady = Drive.DeviceReady
If isReady Then
Drive.BurnFileSystemContent dvdFS, NERO_BURN_FLAG_VERIFY Or NERO_BURN_FLAG_WRITE, 2, NERO_MEDIA_DVD_M_R
End If

This does write, but the disk is unreadable afterwards.

Can anyone give me some sample code on this?

Thanks
Robert
Robert Horn is offline   Reply With Quote
Old 25-07-2005   #2 (permalink)
CD Freaks Member
 
Join Date: Dec 2003
Location: uk
Posts: 234
Re: VB Examples

http://club.cdfreaks.com/showthread....ght=unison+dvd
unison is offline   Reply With Quote
Old 25-07-2005   #3 (permalink)
New on Forum
 
Join Date: Jul 2005
Posts: 5
Re: VB Examples

Thanks for this.

I have used some of this code, and it seems to work up to a point. When the following line is called the application crashes with no error:

Drive.BurnIsoAudioCD "Test", "Files", 0, ISOTrack, Nothing, Nothing, NERO_BURN_FLAG_WRITE + NERO_BURN_FLAG_CLOSE_SESSION, 0, NERO_MEDIA_CDR + NERO_MEDIA_CDRW + NERO_MEDIA_DVD_M_R + NERO_MEDIA_DVD_M_RW + NERO_MEDIA_DVD_P_R + NERO_MEDIA_DVD_P_RW

It imports the files already on the CD okay, and does everything okay up to this point.

How come is it calling BurnIsoAudioCD? I would have thought that you should use BurnFileSystemContent.

Any ideas why it crashes?
Robert Horn is offline   Reply With Quote
Old 25-07-2005   #4 (permalink)
CD Freaks Member
 
Join Date: Dec 2003
Location: uk
Posts: 234
Re: VB Examples

No burnisoaudiocd is correct.

The code works fine on my system what nero version are you using?
Have you modified the code in anyway?
If so have you tried using the original code?

Mike
unison is offline   Reply With Quote
Old 25-07-2005   #5 (permalink)
New on Forum
 
Join Date: Jul 2005
Posts: 5
Re: VB Examples

I checked my version and it was 6.0. So I updated to 6.6 and it is now working fine.

Thanks for the help.
Robert Horn 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
TDK 003 aging examples (pi/pif)? maicod Blank Media 36 24-07-2008 00:59
Anyone have examples of what their printable discs look like? mayto CD & DVD Printing and Labeling 3 12-12-2006 02:46
DelphiNeroApi examples The Mask Nero SDK Discussion Forum 0 19-08-2004 22:13
Need a VB sample MasterOfDisaster Nero SDK Discussion Forum 3 05-07-2004 00:33
examples of condensation ineveryday life el_walto CD Freaks Living Room 10 09-01-2003 20:23


All times are GMT +2. The time now is 19:46.


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