T
tonylc
Hey guys,
I got IMAPI to burn, but I would like to set up this progress events so
I can make a progress bar to go along with the burn process. Right now
I'm not exactly sure how to get this to work. I'm assuming I need to
implement the IDiscMasterProgressEvents interface, so I created my own
class and created empty stubs. Then I called the following code.
Code:
CDProgressEvents pDiscMasterProgressEvents;
...
// set up IDiscMaster, IDiscRecord, IJolietDiscMaster, etc...
HRSEULT hr =
pDiscMaster->ProgressAdvise(&pDiscMasterProgressEvents, progressID);
On the last line of code HRESULT keeps returning that a null reference
pointer was passed to the stub. Aren't I suppose to be passing an empty
object so that ProgressAdvise can fill it up? If that is not it, could
someone explain to me what I am doing wrong?
Thanks,
Tony
I got IMAPI to burn, but I would like to set up this progress events so
I can make a progress bar to go along with the burn process. Right now
I'm not exactly sure how to get this to work. I'm assuming I need to
implement the IDiscMasterProgressEvents interface, so I created my own
class and created empty stubs. Then I called the following code.
Code:
CDProgressEvents pDiscMasterProgressEvents;
...
// set up IDiscMaster, IDiscRecord, IJolietDiscMaster, etc...
HRSEULT hr =
pDiscMaster->ProgressAdvise(&pDiscMasterProgressEvents, progressID);
On the last line of code HRESULT keeps returning that a null reference
pointer was passed to the stub. Aren't I suppose to be passing an empty
object so that ProgressAdvise can fill it up? If that is not it, could
someone explain to me what I am doing wrong?
Thanks,
Tony
XSDiscMasterProgressEvents() : m_cRefs(0)