VB6/NeroCOM-Problem

vbimport

#1

I have created a VB6 prog to burn data onto a cd-rw.

The good news: the cd is burnt as desired.

The bad news: I am not receiving any events, althoug I have defined the “Nero”- and “Drive”-object “WithEvents”.

'NERO OBJECTS
Private WithEvents Nero As Nero
Private WithEvents Drive As NeroDrive

Altough, the “Drive.BurnIsoAudioCD”-methode immediately returns to the calling prog, although the burn process is only started later and takes some time.

So I do not have any information, on what happened to the burn.

Anybody any idea???


#2

Can you please show how your event handlers are defined?


#3

I don’t think ‘PRIVATE’ will work,

That’s the way, it usually looks like:

Public WithEvents nero As nero
Public drives As INeroDrives
Public WithEvents drive As NeroDrive

After all, those events are crossing the whole machine.
Give it a try.


#4

Originally posted by alexp
Can you please show how your event handlers are defined?

I am using then standard eventhandlers established by VB6.

e.g:

Private Sub Nero_OnNonEmptyCDRW(Response As NEROLib.NERO_RESPONSE)
Print #MyLogUnit, Now & NeroID$ & “The media is not empty”
Nero.Abort
End Sub

BTW: the “Nerofiddles”-example does not work either.

I am using the latest available Version of Nero and the SDK.

OS is W2K.


#5

Originally posted by PhotoRuler
[B]I don’t think ‘PRIVATE’ will work,

That’s the way, it usually looks like:

Public WithEvents nero As nero
Public drives As INeroDrives
Public WithEvents drive As NeroDrive

After all, those events are crossing the whole machine.
Give it a try. [/B]

No, this did not help either.

The “NeroFiddles”-example does not work either!