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


Commercial message



Nero SDK Discussion Forum Discuss, C# and NeroDrives problem at International Chat: Software related forum; I am trying to get a Drive object for Nero using C#. I have used tlbimp to create a class for NeroCom. The problem is the NeroDrives.Item returns an INeroDrives interface. This is a huge problem since that interface has Zero events. So my question is how does on


Reply
 
Thread Tools
Old 10-03-2004   #1 (permalink)
New on Forum
 
Join Date: Mar 2004
Posts: 8
C# and NeroDrives problem

I am trying to get a Drive object for Nero using C#. I have used tlbimp to create a class for NeroCom. The problem is the NeroDrives.Item returns an INeroDrives interface. This is a huge problem since that interface has Zero events. So my question is how does on with .Net 2003 and the Latest NeroCom get access to teh driveClass?

Example Code

NeroLib.NeroDriveclass Tdrive;
NeroLib.Neroclass TBaseNero;


in function
Nerolib.NeroDrivesClass TDriveList;

TDriveList = TBaseNero.Getdrives();
Tdrive= TDriveList.Item(0); // Error Since this method returns a INeroDrive interface.

Darushin
Darushin is offline   Reply With Quote
Old 10-03-2004   #2 (permalink)
New on Forum
 
Join Date: Jan 2004
Posts: 3
Not sure if this will help you out, but this is how I did it.

//you could probably declare this drive locally within the method

private NEROLib.NeroDrive drive;


//This is the code in my method.

NEROLib.NeroClass nero = new NEROLib.NeroClass();
NEROLib.NeroDrives drivelist;
drivelist = nero.GetDrives(NEROLib.NERO_MEDIA_TYPE.NERO_MEDIA_CDR);
drive = (NEROLib.NeroDrive) drivelist.Item(0);
crgkrug is offline   Reply With Quote
Old 10-03-2004   #3 (permalink)
New on Forum
 
Join Date: Mar 2004
Posts: 8
That worked, Thanks!
Darushin is offline   Reply With Quote
Old 23-03-2004   #4 (permalink)
CD Freaks Senior Member
 
konsolen's Avatar
 
Join Date: Sep 2003
Posts: 484
firewall

firewall test
konsolen is offline   Reply With Quote
 
Reply

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
Problem with ND-6750a v.Low speed and burning problem vtchaser NEC / Optiarc Burner 19 30-05-2007 21:47
Region problem and TV tuner problem mnemesis Newbie Forum 2 22-01-2006 13:09
Nerovision Video/Audio Sync Problem - Simple problem we think! DrR Nero & InCD 5 12-02-2005 09:53
Small dilemma... computer problem or software problem? Braxas CD and DVD Burners 2 19-12-2004 14:03
DVD-Writer problem (451s) or media problem (Ricoh)? dumitru LiteOn / PLDS/ Sony Burner 4 19-04-2004 22:23


All times are GMT +2. The time now is 11:07.


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