| |||||||
| Commercial message | |
| | |
|
![]() |
| | Thread Tools |
| | #1 (permalink) |
| New on Forum Join Date: Mar 2005
Posts: 5
| User Dialog Callback not called Hello... I hope somebody can help out. My customer needs to burn DVD disks from MPEG2 files that will play in a household DVD player. I tested this functionality using the sample provided for the NeroVisionAPI and it works perfectly for what we need. I need to provide this functionality for Visual Basic so, taking the NeroVisionAPI sample as a guide, I started writing an ATL COM dll that would take all required information from Visual Basic and burn the DVD. So far I am able to add videos, get a list of recording devices and assign the recording device I want to use to burn the DVD. The problem I am having is that my User Dialog Callback function is not being called by the Nero API. I make a call to NeroBur() and, through DLL events, I get progress reports on transcoding. When the NeroAPI reports to me that it is generating, it gets up to 80%. I get reports form the NeroIdleCall back several times, and then a LogLine report that says “User Abort”. I call some messaging events from my Nero User Callback to see where it is failing or if it is entering the callback function at all, but these events are not being raised. Here is how I am setting things up: --My user call back function is declared as follows: static NeroUserDlgInOut NERO_CALLBACK_ATTR NeroDialogCallback(void *pUserData, NeroUserDlgInOut type, void *data); --and it is defined like this: NeroUserDlgInOut NERO_CALLBACK_ATTR CDVDProject::NeroDialogCallback(void *pUserData, NeroUserDlgInOut type, void *data) { CDVDProject * pThis = (CDVDProject *) pUserData;} --I am setting up the NEO_SETTINGS structure like this: NERO_SETTINGS CDVDProject::ns = { NULL,}; --and when I am about to initialize the NeroAPI I do this: ns.nstIdle.ncUserData = this; ns.nstUserDialog.ncUserData = this; BOOL bSuccess = NeroAPIGlueConnect (NULL); if (!bSuccess) { return Error(L"Cannot open NeroAPI.dll!"); } NEROAPI_INIT_ERROR err = NeroInit (&ns, NULL); if (err != NEROAPI_INIT_OK) { return Error(L"Fail to initialize NeroAPI.dll!"); } --This is what I do to burn the DVD: //Build project configuration XML info IXMLDOMDocumentPtr pDocument = BuildXML (); if (pDocument != NULL) { USES_CONVERSION;} As I said…all other callback function are being called, except the User Dialog call back function. Can anybody give me a hand with this? Thanks, thanks, thanks! |
| | |
| | #2 (permalink) |
| Nero Developer Join Date: Oct 2003
Posts: 605
| There is a number of reasons why the burn process might abort. Some callbacks such as progress, aborted and idle callback return a BOOL value which tells NeroAPI if it should abort. You should check your return values for those callbacks. Additionally, if your userdialog callback is never called, you may check the error log or last error to see if this sheds any light on the issue. You say you get reports of transconding after calling NeroBurn() with idle callback being called several times. Are you sure transcoding happens during NeroBurn(), not before during CreateNeroBurnContext()? |
| | |
| | #3 (permalink) |
| New on Forum Join Date: Mar 2005
Posts: 5
| Re: User Dialog Callback not called Hi Alex... First of all..thanks a lot for your prompt reply. I put some code to raise an event before calling the NeroBurn() method. I just ran the program and you are absolutely right...the transcoding happens before the call to the NeroBurn() method. Any ideas what could be causing the method to fail? I was carefull to be as close as possible to the NeroVisionAPI sample. I will follow your advice and check the return values for the callbacks that are being called. Jorge |
| | |
| | #4 (permalink) |
| New on Forum Join Date: Mar 2005
Posts: 5
| Re: User Dialog Callback not called ALEX!!!!! You were absolutely right!!!! The problem was exactly the values being returned by the other callbacks. Thansk a million man...Had been messing with this for a couple of days. Now...life is good again! ![]() Jorge |
| | |
| | #6 (permalink) | |
| New on Forum Join Date: Feb 2007
Posts: 11
| Re: User Dialog Callback not called Quote:
I have problems running the sample applications they keep failing when you ask to get the transcoding estamating time. | |
| | |
| | #7 (permalink) | |
| New on Forum Join Date: Feb 2007
Posts: 11
| Re: User Dialog Callback not called Quote:
I keep getting errors when running the sample applications. Error code: 9,XMLID:,Error text: CNeroConvertManager::CreateConverter(): unknown application (21). It looks like the error is return when you try to get estamated transcoding time. I am using the latest nero 7.7.5.1 and the 1.08sdk | |
| | |
| |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A TAGES dialog | spath | Optical Storage Technical Discussions | 264 | 03-05-2007 00:44 |
| Returning TRUE to Abort callback causes hang | Eigeneer | Nero SDK Discussion Forum | 0 | 18-12-2006 22:38 |
| NeroAPI does not call NeroUserDialog-Callback | obsÿence | Nero SDK Discussion Forum | 0 | 03-04-2006 16:43 |
| Nero CALLBACK function | stanely5 | Nero SDK Discussion Forum | 1 | 12-07-2005 08:27 |
| UserDialog callback | simwall | Nero SDK Discussion Forum | 3 | 09-02-2004 08:49 |