Burning multisession cds

vbimport

#1

Hi!

I try to burn multisession cds.

If the cd-r is empty, i create a NEROLib.NeroFolderClass object, which is my root folder for the NeroIsoTrackClass object, and pass it to the isotrackobject with the command:

iso.RootFolder = myRootFolder;

Then I create files for the RootFolder and add it.

Then I burn and it works.

BUT, if i have a cd with sessions on it, the OnDoneImport function returns also a NeroFolderClass (CLASS!!!) object, which will be my myRootFolder. If I then try to execute the command:

iso.RootFolder = myRootFolder;

the following exception occurs (i hope i translated it, so you can understand):

INTERFACE NOT SUPPORTED…

I am using the latest version of nero and all that stuff and the code already worked. Then I closed visual studio and reopended the project and now this exception occurs.

What’s wrong?

Thanks!
Gerhard


#2

TRY ONDONEIMPORT2…

Private Sub Drive_OnDoneImport2(ByVal bOk As Boolean, ByVal pFolder As NEROLib.NeroFolder, ByVal pCDStamp As NEROLib.NeroCDStamp, ByVal pImportInfo As NEROLib.NeroImportDataTrackInfo, ByVal importResult As NEROLib.NERO_IMPORT_DATA_TRACK_RESULT) Handles drive.OnDoneImport2

Try
    If importResult = NERO_IMPORT_DATA_TRACK_RESULT.NIDTR_NO_ERROR Then
   'compare folder to cdr
        
       If ManageIsoTrack(m_DirToBurn, drive.DriveLetter & ":\", pFolder) Then
             isotrack.RootFolder = pFolder
             BurnSession()
       Else
             clsExcp.WriteLog(clsExcp.enuLogLevel.LOG_LEV_ALL, "COMPARE FOLDER", "NO DIFFERENCE")
       End If

    End If
    Catch e As Exception
         clsExcp.WriteLog(clsExcp.enuLogLevel.LOG_LEV_ERROR, "OnDoneImport2", e.ToString)
    End Try

End Sub