| |||||||
| Commercial message | |
| | |
|
![]() |
| | Thread Tools |
| | #1 (permalink) |
| New on Forum Join Date: Mar 2004 Location: Herts, UK
Posts: 27
| NeroEstimateTrackSize() always returns -1 Whenever I use the NeroEstimateTrackSize() function the result is always -1. I use the same function to create the CNeroIsoTrack* pointer as I do in my BurnCD function (which works a treat). Here is my code: ============================================== UINT CNeroInterface::EstimateSize() { UINT nSize; BOOL bRetVal = TRUE; CNeroIsoTrack* pTrack = NULL; NERO_ISO_ITEM* pItem = NULL; NERO_FILESYSTEMTRACK_OPTIONS* pTrackOptions; CString Buffer; if(NULL == (pTrackOptions = new NERO_FILESYSTEMTRACK_OPTIONS)) return 0; if(FALSE == (m_bNeroInitialised = InitialiseNero())) { delete pTrackOptions; return 0; } if(FALSE != GetIsoTrack(&pTrack, &pItem)) { memset(pTrackOptions, 0, sizeof NERO_FILESYSTEMTRACK_OPTIONS)); pTrackOptions->netsStructureSize = sizeof(NERO_FILESYSTEMTRACK_OPTIONS); pTrackOptions->netspCDStamp = NULL; pTrackOptions->netsMediaType = MEDIA_CD; pTrackOptions->netsDeviceHandle = m_NeroDeviceHandle; pTrackOptions->netsFlags = GetBurnFlags(); pTrackOptions->netsFSContainer = NULL; pTrackOptions->netsFSContainerFlags = 0; nSize = NeroEstimateTrackSize(pTrack, NETS_EXACT_SIZE, pTrackOptions); } if(pItem) DeleteIsoItemTree(pItem); delete pTrackOptions; if(FALSE == CleanUp()) bRetVal = FALSE; return nSize; } ============================================== My InitialiseNero() function calls: NeroAPIGlueConnect() NeroInit() NeroGetAvailableDrivesEx() NeroOpenDevice() with all the required parameters and is also used by my BurnCD() function and works correctly. The GetIsoTrack() function is based on the same function in NeroCmd - CBurnContext::GetIsoTrack and again is used by my BurnCD() function and works correctly. The GetBurnFlags() function is also used in my BurnCD function, but are normally set to: NBF_WRITE | NBF_DISABLE_ABORT | NBF_BUF_UNDERRUN_PROT | NBF_DETECT_NON_EMPTY_CDRW | NBF_CD_TEXT | NBF_VERIFY; I have tried all combinations of the dwFlags member of the NeroEstimateTrackSize() function: NETS_FILESYSTEM_OVERHEAD NETS_DATA NETS_EXACT_SIZE but with the same results. Any help with my problem would be greatly appreciated. I am using Nero SDK version 1.04 and Nero Burning Rom V6.0.0.0 Best regards codekiddie |
| | |
| |
| |
![]() |
| 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 |
| NeroEraseDisc returns NDE_GENERIC_ERROR | dietmarR | Nero SDK Discussion Forum | 1 | 21-09-2007 13:34 |
| what is up with Superman Returns? | narrowacres | DVDFab / DVD Region+CSS Free | 12 | 26-12-2006 19:08 |
| NeroEstimateTrackSize crashes | fpa2 | Nero SDK Discussion Forum | 6 | 17-06-2005 13:02 |
| NeroGetCDInfo() returns 0, NeroGetLastDriveError() returns NDE_NO_ERROR | brownc93 | Nero SDK Discussion Forum | 0 | 31-05-2005 04:12 |
| NeroEstimateTrackSize() | sajith | Nero SDK Discussion Forum | 0 | 03-09-2004 13:53 |