| |||||||
| Commercial message | |
| | |
|
![]() |
| | Thread Tools |
| | #1 (permalink) |
| New on Forum Join Date: Jun 2005
Posts: 2
| Can't add session on DVD+-RW - works with CD-RW Hello, I'm trying to build a multi-session DVD+-RW with NeroAPI (I use 6.6.0.6). It works without any problem with CD-RW (with the same code except the media type) but I've got always the message "the disc is no empty" with DVD+-RW. So I can't add a session on this kind of disc until I erase the disc ![]() this is the code I use: importedNeroFile = NeroImportDataTrack( neroDeviceHandle, lastTrack , &ppCDStamp, &track, 0, &result, NULL ); NeroFreeCDStamp ( ppCDStamp ); ... NERO_ISO_ITEM* neroFile = NeroCreateIsoItem(); (this neroFile will be added at the end of the importedNeroFile) ... // no CD stamp, artist or title required writeCD.nwcdpCDStamp=NULL; writeCD.nwcdArtist=NULL; writeCD.nwcdTitle=NULL; writeCD.nwcdCDExtra=FALSE; // we have no Audio tracks writeCD.nwcdNumTracks=0; writeCD.nwcdMediaType = MEDIA_DVD_P_RW; if ( neroDeviceHandle ) { writeCD.nwcdIsoTrack = NeroCreateIsoTrackEx( firstNeroFile, Now().DateTimeString().c_str(), NCITEF_CREATE_ISO_FS | NCITEF_USE_JOLIET ); int iRes = NeroBurn( neroDeviceHandle, NERO_ISO_AUDIO_CD, &writeCD, NBF_WRITE | NBF_CLOSE_SESSION | (verify ? NBF_VERIFY : 0) | (no_eject ? NBF_DISABLE_EJECT : 0), 0, npProgress ); // free memory that was allocated for the track NeroFreeIsoTrack(writeCD.nwcdIsoTrack); // close the device NeroCloseDevice(neroDeviceHandle); //NeroFreeIsoItemTree( importedNeroFile ); NeroFreeIsoItemTree( firstNeroFile ); Any idea ? Thanks for your help ! Jimmy |
| | |
| | #2 (permalink) |
| New on Forum Join Date: Jun 2005
Posts: 2
| Re: Can't add session on DVD+-RW - works with CD-RW Hi, I just found why I've got this behaviour. We must fill in the nwcdpCDStamp var of the NERO_WRITE_CD struct with the previous value given by the NeroImportDataTrack. Here is my code: void *ppCDStamp = NULL; ... importedNeroFile = NeroImportDataTrack( neroDeviceHandle, lastTrack , &ppCDStamp, &track, 0, &result, NULL ); ... writeCD.nwcdpCDStamp = ppCDStamp; Hope it could help someone... Jimmy |
| | |
| |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| dvd works cd-rw doesn't? | malchika | CD and DVD Burners | 1 | 26-07-2006 20:03 |
| Does closing session on DVD-RW,RAM,+RW etc ruin disc? | B105 | Burning Software | 7 | 21-05-2006 11:34 |
| DVD-RW/+RW and CD-RW/+RW problem | Alana | NEC / Optiarc Burner | 0 | 12-01-2005 20:42 |
| Open last session on CD-RW with NeroApi | bhk | Nero SDK Discussion Forum | 1 | 30-04-2004 13:08 |
| De Sony DVD-R/-RW/+R/+RW/CD-R/CD-RW DRU500A | King Dingeling | Dutch: De Woonkamer | 4 | 17-10-2002 16:31 |