| |||||||
| Commercial message | |
| | |
|
![]() |
| | Thread Tools |
| | #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; } } } } |
| | |
![]() |
| 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 | |
| |
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 |