Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, NeroCom doesn't work at International Chat: Software related forum; Hi! I try to burn CDs with NeroCom.dll, but it doesn't work. Nero is installed properly and here is the code, where an exception occurs: Code:


Reply
 
Thread Tools
Old 12-04-2004   #1 (permalink)
New on Forum
 
Join Date: Apr 2004
Posts: 16
NeroCom doesn't work

Hi!

I try to burn CDs with NeroCom.dll, but it doesn't work.

Nero is installed properly and here is the code, where an exception occurs:

Code:
NEROLib.NeroClass nero = new NEROLib.NeroClass();
NEROLib.NeroDrivesClass drives = nero.GetDrives(NEROLib.NERO_MEDIA_TYPE.NERO_MEDIA_CD);
In the second line the following exception occurs:

System.InvalidCastException: QueryInterface für Schnittstelle NEROLib.INero fehlgeschlagen.
at NEROLib.NeroClass.GetDrives(NERO_MEDIA_TYPE lVal)
at ........

What's wrong with my code?

Thanks!
gerhard_pichler is offline   Reply With Quote
Old 12-04-2004   #2 (permalink)
Nero Developer
 
Join Date: Oct 2003
Posts: 605
I assume this is C# ? In VB.NET one could write:
Code:
        Dim drives As NEROLib.INeroDrives
        drives =  nero.GetDrives(NEROLib.NERO_MEDIA_TYPE.NERO_MEDIA_CDR)
Try something similar in C#. Although I am not very familiar with C#, I don't see a reason why your code would give you an error.
alexp is offline   Reply With Quote
Old 02-06-2005   #3 (permalink)
New on Forum
 
Join Date: May 2005
Posts: 26
Re: NeroCom doesn't work

I had the same problem. In my PC (nero 6.6.0.13) all was ok, in another your message appared in the first line of code using nero (nero.APIVersion). In the test PC there was Nero 6.6.0.6, i've upgraded it and now it's all fine.
willyx is offline   Reply With Quote
 
Reply


If you can't find where you are looking for, then become a member and get an answer fast! We have thousands of people online every moment of the day to help you! Click here



Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NeroCOM 1.7 ImportISOTrack don't work Woland Devil Nero SDK Discussion Forum 2 05-09-2007 09:00
NeroCOM C# vakvak17 Nero SDK Discussion Forum 2 09-03-2006 17:10
Can't get Nerocom to work wth VB mcrit Nero SDK Discussion Forum 3 06-08-2004 22:53
VB.NET and NeroCom and events don't work Terryf Nero SDK Discussion Forum 0 22-04-2004 08:20
nerocom and before 6.0 Curtis Nero SDK Discussion Forum 1 08-04-2004 10:49


All times are GMT +2. The time now is 19:29.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0