Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
GeneralRe: books Pin
Heath Stewart8-Jun-04 3:20
protectorHeath Stewart8-Jun-04 3:20 
GeneralRe: books Pin
Uwe Keim8-Jun-04 3:36
sitebuilderUwe Keim8-Jun-04 3:36 
GeneralRe: books Pin
surgeproof9-Jun-04 10:07
surgeproof9-Jun-04 10:07 
GeneralRe: books Pin
valikac7-Jun-04 12:05
valikac7-Jun-04 12:05 
GeneralRe: books Pin
surgeproof9-Jun-04 10:08
surgeproof9-Jun-04 10:08 
GeneralRe: books Pin
Werdna8-Jun-04 3:36
Werdna8-Jun-04 3:36 
GeneralRe: books Pin
surgeproof9-Jun-04 10:06
surgeproof9-Jun-04 10:06 
QuestionUsing WMPLib in C# for CD controls? Pin
Admiral Ackbar7-Jun-04 11:09
Admiral Ackbar7-Jun-04 11:09 
Hi guys. I may have a stupid question. I'm a bit of a newbie to C#. So, to get into things I'm building a CD player. Now, I know there's a tutorial here. But before I dive into the MCI, I had a question about the WMP.dll. Would it be easier and simpler to use that? Can I use that? How do I use that? For example, in the tutorials home made .dll he has to use the MCI to eject the CD rom.

In the wmp there's a method for doing so called "player.cdromCollection.item(index).eject()". Now, how would I clal that method. And from my understanding, I have to in a sense 'install' the player into my app. I just want a button that says "eject" and calls this method. Just to experiemtn with, not the whole media player with media window and play and stop buttons. Is this possible? For example, can I use Environment to find the CD Drive and it's path and then from there eject the cd? Or better yet create a CD Rom Object and use driveSpecifier?

Again I'm new to this, so help me out if you can. It would be just easier for a newbie lke myself to use these commands already in wmp.dll by importing that library then necessarily messing with the MCI.

Thanks for reading and hopefully answering.
AnswerRe: Using WMPLib in C# for CD controls? Pin
Heath Stewart7-Jun-04 11:33
protectorHeath Stewart7-Jun-04 11:33 
GeneralCheck if a TreeViewItem is visible NOT using EnsureVisible Pin
Guinness4Strength7-Jun-04 10:55
Guinness4Strength7-Jun-04 10:55 
GeneralRe: Check if a TreeViewItem is visible NOT using EnsureVisible Pin
Heath Stewart7-Jun-04 11:28
protectorHeath Stewart7-Jun-04 11:28 
GeneralRe: Check if a TreeViewItem is visible NOT using EnsureVisible Pin
Guinness4Strength7-Jun-04 11:31
Guinness4Strength7-Jun-04 11:31 
GeneralRe: Check if a TreeViewItem is visible NOT using EnsureVisible Pin
Heath Stewart7-Jun-04 11:42
protectorHeath Stewart7-Jun-04 11:42 
GeneralRe: Check if a TreeViewItem is visible NOT using EnsureVisible Pin
Guinness4Strength7-Jun-04 11:45
Guinness4Strength7-Jun-04 11:45 
Generalrunning automatically asp.net website Pin
amitmerla7-Jun-04 10:20
amitmerla7-Jun-04 10:20 
GeneralRe: running automatically asp.net website Pin
Heath Stewart7-Jun-04 11:27
protectorHeath Stewart7-Jun-04 11:27 
GeneralException variable never used Pin
Dominik Reichl7-Jun-04 10:03
Dominik Reichl7-Jun-04 10:03 
GeneralRe: Exception variable never used Pin
Dave Kreskowiak7-Jun-04 10:15
mveDave Kreskowiak7-Jun-04 10:15 
GeneralRe: Exception variable never used Pin
leppie7-Jun-04 10:42
leppie7-Jun-04 10:42 
GeneralRe: Exception variable never used Pin
Heath Stewart7-Jun-04 11:25
protectorHeath Stewart7-Jun-04 11:25 
GeneralRe: Exception variable never used Pin
Dave Kreskowiak7-Jun-04 11:57
mveDave Kreskowiak7-Jun-04 11:57 
GeneralRe: Exception variable never used Pin
leppie7-Jun-04 12:54
leppie7-Jun-04 12:54 
GeneralUsing variable in Values for SQL insert Pin
kv_ajay7-Jun-04 8:40
kv_ajay7-Jun-04 8:40 
GeneralRe: Using variable in Values for SQL insert Pin
Alvaro Mendez7-Jun-04 8:55
Alvaro Mendez7-Jun-04 8:55 
GeneralRe: Using variable in Values for SQL insert Pin
Anonymous7-Jun-04 9:47
Anonymous7-Jun-04 9:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.