Hi I have a question for Nero multisession

Hi everybody.
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.
Second
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( !stricmp(GetFilename(*pPrevTree),GetFilename(*MakingTree)))
{
if((*pPrevTree)->isDirectory)
{
MergeIsoTracks(&(*MakingTree)->subDirFirstItem,(*pPrevTree)->subDirFirstItem,TRUE);
break;
}
else {
break;
}
}
else
{
if( (*pPrevTree)->nextItem )
{
pPrevTree = &(pPrevTree)->nextItem;
continue;
}
else
{
NERO_ISO_ITEM
tempItem = *MakingTree;
(*pPrevTree)->nextItem = tempItem;
*PrevTree = **pPrevTree;
break;
}
}
}
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
existing directory

But I failed the burning multisession with same directory name.
How can I burning right?
I wanna your help!

I solve it!
And anyone wanna how to make merged ISO tree then I think I can help!
Have a nice day. :cool:

I have the same problem can you help me