I’m trying to use NeroCom from VB.NET. I’ve read this thread but I’m not too hot on all this COM stuff - I couldn’t quite follow it; although it seemed to work the same with just the registered NeroCOM.dll when I added in as a reference.
The problem I’m getting is when I try and reference a drive in the drives object. I’ve got a simple Sub:
Dim MyNero As NeroCOMNET.Nero
Dim drives As NeroCOMNET.INeroDrives
Dim myIndex As Integer
Dim drive As NeroCOMNET.INeroDrive
MyNero = New NeroCOMNET.Nero
drives = MyNero.GetDrives NeroCOMNET.NERO_MEDIA_TYPE.NERO_MEDIA_CDROM)
drive = drives(0)
The complier flags the last line shown here with the error:
BC30547 : Interface ‘NeroCOMNET.INeroDrives’ cannot be indexed because it has no default property.
Can anyone give me any pointers / clues?
Thanks in advance.