How to get the Size of Inserted Media

hi,

Please help me to find out the Size of the Inserted disc. If i place empty CD it gives 0 bytes.how to find the size of the Empty CD-R or CD-RW.

regards,
raji

use the member “ncdiFreeCapacityInBlocks” of the NERO_CD_INFO structure you get from NeroGetCDInfo()

thanks for ur reply,but i have to find the size of the Empty CD-R or CD-RW in VisualBasic. In VB how to use the member “ncdiFreeCapacityInBlocks” of the NERO_CD_INFO structure.

I think the answer will be the same as in:
how to find Inserted Media is CD-R or CD-RW

I am having a related problem.
I call CDInfo from a NeroDrive object
but I can not write an event handle that will actually compile.
my call…
Call ObjSelectedDrive.CDInfo(NERO_CDINFO_FLAGS.NERO_READ_CD_TEXT)
my handler…
Private Sub ObjSelectedDrive_OnDoneCDInfo(pCDInfo As NeroCDInfo)
End Sub
the error I get is “procedure declaration does not match description of event or procedure having the same name”.
I have also tried
Private Sub ObjSelectedDrive_OnDoneCDInfo(pCDInfo As INeroCDInfo)

End Sub
with the same results. What am I doing wrong?

well I’m half way there…
Private Sub ObjSelectedDrive_OnDoneCDInfo(ByVal pCDInfo As NEROLib.INeroCDInfo)
seems to compile

Private Sub ObjSelectedDrive_OnDoneCDInfo(ByVal pCDInfo As NEROLib.NeroCDInfo)
doesnt compile

and after doing…
Call ObjSelectedDrive.CDInfo(NERO_CDINFO_FLAGS.NERO_READ_CD_TEXT)
the onDoneCDInfo event is never triggered.

Anyone have an idea how this is supposed to work?