Write Data Tracks with C

Hello,

I’m using MSVC 6.0 and write an C application and want to burn my backup data on CD. The first try was to create an ISO image by filling the NERO_ISO_ITEM. After filling the structure I saw that I can only create an ISO image when I’m using C++. Is there any way to burn a data cd with C?

I saw that I can only create an ISO image when I’m using C++. Is there any way to burn a data cd with C?

What did you exactly see? Normally, you should be able to create a data disc in C by creating a tree of IsoItems and then create the necessary CIsoTrack pointer with NeroCreateIsoTrackEx.

I saw in the “NeroIsoTrack.h” the following error message:

#ifndef __cplusplus
#error The Nero ISO Track feature can only be used by C++ code
#else

And the the return value of NeroCreateIsoTrackEx is an pointer of CNeroIsoTrack and that is a class and I can’t use classes in C.:frowning:

Is there any other way???

You don’t have to include NeroIsoTrack.h if you are using NeroCreateIsoTrackEx method. Just give this pointer you get from NeroCreateIsoTrackEx method to NeroAPI e.g. by setting the nwcdIsoTrack member of the NERO_WRITE_CD struct.