Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, Burn help at International Chat: Software related forum; Hello, i'm problem burn cd/dvd please help, bug its in function, bat it can I commit mistake. int iRes = NeroBurn(ndhDeviceHandle, NERO_ISO_AUDIO_CD, &writeCD,NBF_WRITE, 0, &npProgress); my code see: void CBurnMeDlg::OnBurn() { // TODO: Add your control notification handler code here if (mstrFileName == "") { AppendString("You have to


Reply
 
Thread Tools
Old 11-12-2005   #1 (permalink)
New on Forum
 
Join Date: Dec 2005
Posts: 1
Burn help

Hello, i'm problem burn cd/dvd please help,
bug its in function, bat it can I commit mistake.

int iRes = NeroBurn(ndhDeviceHandle, NERO_ISO_AUDIO_CD, &writeCD,NBF_WRITE, 0, &npProgress); <= her its a bug "access violation"

my code see:

void CBurnMeDlg::OnBurn()
{
// TODO: Add your control notification handler code here
if (mstrFileName == "")
{
AppendString("You have to choose a file before you can start burning!");
}
else
{
strcpy(mniiFile.fileName, mstrFileName);
strcpy(mniiFile.sourceFilePath, mstrPathName);
mniiFile.isDirectory=FALSE;
mniiFile.isReference=FALSE;
mniiFile.nextItem=NULL;
writeCD.nwcdpCDStamp=NULL;
writeCD.nwcdArtist=NULL;
writeCD.nwcdTitle=NULL;
writeCD.nwcdCDExtra=FALSE;
writeCD.nwcdNumTracks=0;
writeCD.nwcdMediaType = MEDIA_CD;
int i = mcbxDevices.GetCurSel();
NERO_SCSI_DEVICE_INFO* nsdiDevice =
(NERO_SCSI_DEVICE_INFO*)mcbxDevices.GetItemDataPtr(i);

ndhDeviceHandle = NeroOpenDevice(nsdiDevice);
if (!ndhDeviceHandle)
{
AppendString("Device could not be opened: "+(CString)nsdiDevice->nsdiDeviceName);
}
else
{
mbtnAbort.EnableWindow(true);
mCancel.EnableWindow(false);
mOK.EnableWindow(false);
mcbxDevices.EnableWindow(false);
mbtnBrowse.EnableWindow(false);
mbtnBurn.EnableWindow(false);
mpgsProgress.SetRange(0,100);
writeCD.nwcdIsoTrack = NeroCreateIsoTrackEx(&mniiFile,
"NeroFiddles", NCITEF_CREATE_ISO_FS|NCITEF_USE_JOLIET);

int iRes = NeroBurn(ndhDeviceHandle, NERO_ISO_AUDIO_CD, &writeCD,NBF_WRITE, 0, &npProgress); <= her its a bug access violation

NeroFreeIsoTrack(writeCD.nwcdIsoTrack);
NeroCloseDevice(ndhDeviceHandle);
mbtnAbort.EnableWindow(false);
mCancel.EnableWindow(true);
mOK.EnableWindow(true);
mcbxDevices.EnableWindow(true);
mbtnBrowse.EnableWindow(true);
mbtnBurn.EnableWindow(true);
mpgsProgress.SetPos(0);
mbAborted = false;
char* Log = NeroGetErrorLog();
AppendString(Log);
NeroFreeMem(Log);
switch(iRes)
{
case NEROAPI_BURN_OK:
AppendString ("BurnCD() : burn successful");
break;
case NEROAPI_BURN_UNKNOWN_CD_FORMAT:
AppendString ("BurnCD() : unknown CD format");
break;
case NEROAPI_BURN_INVALID_DRIVE:
AppendString ("BurnCD() : invalid drive");
break;
case NEROAPI_BURN_FAILED:
AppendString ("BurnCD() : burn failed");
break;
case NEROAPI_BURN_FUNCTION_NOT_ALLOWED:
AppendString ("BurnCD() : function not allowed");
break;
case NEROAPI_BURN_DRIVE_NOT_ALLOWED:
AppendString ("BurnCD() : drive not allowed");
break;
case NEROAPI_BURN_USER_ABORT:
AppendString ("BurnCD() : user aborted");
break;
case NEROAPI_BURN_BAD_MESSAGE_FILE:
AppendString ("BurnCD() : bad message file");
break;
default:
AppendString ("BurnCD() : unknown error");
break;
}
}
}
}
microbit is offline   Reply With Quote
Reply


If you can't find where you are looking for, then become a member and get an answer fast! We have thousands of people online every moment of the day to help you! Click here



Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LiteOn Fast Burn Dual format and Ultra Fast Burn Patch (12x burn < 6:30) C0deKing LiteOn / PLDS/ Sony Burner 374 07-05-2008 18:18
Lite on SHM 165P6S wont burn dvd but can burn cds need some help. gemz23 General Hardware Forum 2 13-03-2007 03:01
Philips dvdr1648p1 wont burn dvd's via nero (but will burn cd's such as music) samplayford BenQ / Philips Burner 5 21-02-2007 01:21
Have you had bad Liteon 1693 burns following a 16X burn (visible burn ring)? chas0039 LiteOn / PLDS/ Sony Burner 0 30-12-2005 16:42
New LTC-H starts burn fast, then slows, smart-burn disabled Rizban LiteOn / PLDS/ Sony Burner 8 07-11-2003 07:13


All times are GMT +2. The time now is 15:46.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0