I made a burning program with NeroAPI and Burning was well.
But I wanna Multisession program.
So I use sample code and make it!
But there’re some problems. :a
First I made ISO tree and burned it in CD.
I made ISO tree for wanna writting directory and files.
And I got the NERO_ISO_ITEM tree from media(CD) with NeroImportDataTrack function call.
Then I wanna merge them. So I made this function.
BOOL CCdBurn::MergeIsoTracks(NERO_ISO_ITEM** MakingTree, NERO_ISO_ITEM* PrevTree)
BOOL bResult = ((MakingTree != NULL) && (MakingTree != NULL) && (PrevTree != NULL));
for( ; bResult && (MakingTree != NULL); )
for(NERO_ISO_ITEM pPrevTree = &PrevTree; *pPrevTree != NULL; )
if( (*pPrevTree)->nextItem )
pPrevTree = &(pPrevTree)->nextItem;
NERO_ISO_ITEM tempItem = *MakingTree;
(*pPrevTree)->nextItem = tempItem;
*PrevTree = **pPrevTree;
MakingTree = &(*MakingTree)->nextItem;
// Attach whatever is left of the new tree to the main tree. *MakingTree = PrevTree; // Returning true means, everything is fine, continue. return bResult;
Ends of this function I get the merged ISO tree.
So I wanna Burn it but I got the error message boxes like this.
“Juliet names of these files (listed here in ISO-L3) are the same:”
“Preparation of ISO 9600 structures failed”
I read the document for NeroAPI and find that
You can obtain the content of the previous session with NeroImportDataTrack.
You will get an ISO item tree, which contains all files of the imported session.
To prevent the renaming of ISO items, make sure there are no duplicate item names.
If a directory of the desired name already exists, arrange the new ISO items below the
But I failed the burning multisession with same directory name.
How can I burning right?
I wanna your help!