I've been plagued with problems ever since attempting to use the Nero SDK.
My Nero version is 18.104.22.168 and I'm using the 1.06 SDK.
So, before I throw in the towel and look at other ways of achieving my objectives I thought I'd open this one up to the forum for comments.
I've reduced everything down to the bare minimum to illustrate my problem. All I have is a bog standard MFC dialog application. I've added the Nero header files and NeroAPIGlue.lib to the project directory and updated the project settings accordingly.
I then added the following code to OnInitDialog() so that it now looks like this:
BOOL connect = NeroAPIGlueConnect(NULL);
ASSERT( connect );
memset( &nsSettings, 0, sizeof(NERO_SETTINGS) );
NEROAPI_INIT_ERROR initErr = NeroInit (&nsSettings, NULL);
ASSERT( initErr == NEROAPI_INIT_OK );
NERO_SCSI_DEVICE_INFOS* pndiDeviceInfos = NULL;
pndiDeviceInfos = NeroGetAvailableDrivesEx (MEDIA_CD, NULL);
EndDialog( IDOK );
It compiles fine and when I run it I get no errors (I have one Plextor CD writer in my system). However, the application never terminates correctly and is left in limbo somewhere in exit() in the C runtime library.
HOWEVER, if I just comment out the NeroGetAvailableDrivesEx() line everything works perfectly and the application exits cleanly.
I just can't see what I'm doing wrong. Fiddling around in nsSettings doesn't seem to make any difference.
Does anyone out there have any ideas? My application is so small I'm at a loss to know where to look next.