Burning DVD Using Nero SDK1.08

vbimport

#1

Hi,all guys…

I wanna make a tiny software used to burn the video files (*.mpg)) to DVD media which can be played in DVD player.
When I read the Doc about Nero API, there is something make me confused.

NEROAPI_BURN_ERROR NADLL_ATTR NeroBurn
(
NERO_DEVICEHANDLE aDeviceHandle,
NERO_CD_FORMAT CDFormat,
const void* pWriteCD,
DWORD dwFlags,
DWORD dwSpeed,
NERO_PROGRESS* pNeroProgress
);

pwriteCD
Must point on a NERO_WRITE_CD, NERO_CD_COPY or a
NERO_WRITE_VIDEO_CD structure.

typedef struct tag_NERO_WRITE_VIDEO_CD
{
BOOL nwvcdSVCD;
DWORD nwvcdNumItems;
struct CNeroIsoTrack *nwvcdIsoTrack;
char nwvcdTempPath[252];
const char *nwvcdLongTempPath;
#ifdef __cplusplus
VCDEngine::IVCDFSContentGenerator *(nwvcdCustomVCDEngine)
(VCDEngine::IVCDMediaDescription
desc,
FileSystemContent::IFileSystemDescContainer *pFSDC);
#else
void *nwvcdCustomVCDEngine;
#endif
NERO_VIDEO_RESOLUTION nwvcdEncodingResolution;
DWORD nwvcdReserved[31];
NERO_VIDEO_ITEM nwvcdItems[1];
} NERO_WRITE_VIDEO_CD;

//////
If i wanna burn video files to DVD, the parameter pWriteCD in NeroBurn is thought to be NERO_WRITE_VIDEO_CD type(Right?).

There are two variables in NERO_WRITE_VIDEO_CD:
NERO_VIDEO_ITEM nwvcdItems[1]
struct CNeroIsoTrack *nwvcdIsoTrack;

So I am confused that the video files(.mpg) should be wraped in nwvcdIsoTrack or nwvcdItems.
Can someone do me favor…

Thanks in advance.:bow: