Click here to Skip to main content
15,905,683 members
Home / Discussions / C#
   

C#

 
QuestionHow to stop Backgroundworker ? Pin
ALQallaf27-Apr-06 12:50
ALQallaf27-Apr-06 12:50 
AnswerRe: How to stop Backgroundworker ? Pin
Josh Smith27-Apr-06 13:07
Josh Smith27-Apr-06 13:07 
QuestionDrawReversibleFrame? Pin
melanieab27-Apr-06 10:08
melanieab27-Apr-06 10:08 
AnswerRe: DrawReversibleFrame? Pin
Guffa27-Apr-06 10:23
Guffa27-Apr-06 10:23 
GeneralRe: DrawReversibleFrame? Pin
melanieab27-Apr-06 11:08
melanieab27-Apr-06 11:08 
AnswerRe: DrawReversibleFrame? Pin
Guffa27-Apr-06 14:07
Guffa27-Apr-06 14:07 
GeneralRe: DrawReversibleFrame? Pin
melanieab28-Apr-06 9:57
melanieab28-Apr-06 9:57 
QuestionTips for writing a Web Service in C# which will be used by a Java app... Pin
Josh Smith27-Apr-06 9:49
Josh Smith27-Apr-06 9:49 
QuestionThe correct way to dispose of objects Pin
Mark0627-Apr-06 9:32
Mark0627-Apr-06 9:32 
AnswerRe: The correct way to dispose of objects Pin
Colin Angus Mackay27-Apr-06 10:00
Colin Angus Mackay27-Apr-06 10:00 
QuestionRichTextBox tables Pin
Authorof2227-Apr-06 9:24
Authorof2227-Apr-06 9:24 
QuestionWriting Web Control Library Pin
thompson_3827-Apr-06 8:50
thompson_3827-Apr-06 8:50 
AnswerRe: Writing Web Control Library Pin
Josh Smith27-Apr-06 13:03
Josh Smith27-Apr-06 13:03 
Questionexpander control Pin
awu2527-Apr-06 8:25
awu2527-Apr-06 8:25 
AnswerRe: expander control Pin
Ravi Bhavnani27-Apr-06 8:37
professionalRavi Bhavnani27-Apr-06 8:37 
QuestionCalling a method in another form Pin
awu2527-Apr-06 8:24
awu2527-Apr-06 8:24 
AnswerRe: Calling a method in another form Pin
S. Senthil Kumar27-Apr-06 18:29
S. Senthil Kumar27-Apr-06 18:29 
QuestionOverride TextBox portion of a ComboBox? Pin
secovel27-Apr-06 7:46
secovel27-Apr-06 7:46 
AnswerRe: Override TextBox portion of a ComboBox? Pin
Robert Rohde27-Apr-06 8:22
Robert Rohde27-Apr-06 8:22 
QuestionRotate the world Pin
Sabry190527-Apr-06 7:43
Sabry190527-Apr-06 7:43 
AnswerRe: Rotate the world Pin
Anubhava Dimri28-Jun-10 19:24
Anubhava Dimri28-Jun-10 19:24 
QuestionHow to retrieve DVD interfaces from a custom DirectSHow graph? Pin
manusse27-Apr-06 5:45
manusse27-Apr-06 5:45 
I want to buid my custom DVD graph and then get all the DVD interface.
I know how to build the graph but I don't know how to get the DVD interface.
I am using the DirectShowLib library.

Of course, I cannot use the code below which is for graph created using the
DvdGraphBuilder

Guid riid = typeof( IDvdInfo2 ).GUID;
hr = dvdGraph.GetDvdInterface( riid, out comobj );
Marshal.ThrowExceptionForHR( hr );


My code for creating the graph is:

// Get the graphbuilder object
m_graphBuilder = (IFilterGraph2) new FilterGraph();
					
// First instantiate a DVD Navigator
idvdnav =  new DVDNavigator() as IBaseFilter;
hr = m_graphBuilder.AddFilter(idvdnav,"DVD Navigator");
Marshal.ThrowExceptionForHR(hr);
					
// Render pins
IPin nav_video = GetPinByName(idvdnav,"Video");
hr = m_graphBuilder.Render(nav_video);
Marshal.ThrowExceptionForHR(hr);

IPin nav_AC3 = GetPinByName(idvdnav,"AC3");
hr = m_graphBuilder.Render(nav_AC3);
Marshal.ThrowExceptionForHR(hr);

IPin nav_SP = GetPinByName(idvdnav,"SubPicture");
hr = m_graphBuilder.Render(nav_SP);
Marshal.ThrowExceptionForHR(hr);


I think I must get IDvdInfo2 and IDvdControl2 interfaces of the DVD Navigator somewhere but I
am lost.

I tried to add the code below but I don't think it is working:

// Get the IDvdInfo2 and IDvdControl2 interfaces from the DVD Navigator
comType = Type.GetTypeFromCLSID(typeof( DVDNavigator ).GUID, true);
if (comType == null)
throw new NotImplementedException(@"DVD Navigator not installed/registered?");

comobj = Activator.CreateInstance(comType);
dvdInfo = (IDvdInfo2) comobj;
dvdCtrl = (IDvdControl2) comobj;
comobj = null;



Any idea?

Thanks in advance for you help.

PS: I wanted to post this question of SF forum but it seems it's impossible to start new threads there.


Manusse

-- modified at 16:05 Sunday 30th April, 2006
AnswerRe: How to retrieve DVD interfaces from a custom DirectSHow graph? Pin
manusse28-Apr-06 1:00
manusse28-Apr-06 1:00 
QuestionDatalist with CheckboxList Pin
ZeedijkMike27-Apr-06 4:38
ZeedijkMike27-Apr-06 4:38 
AnswerRe: Datalist with CheckboxList Pin
Paul Brower27-Apr-06 4:49
Paul Brower27-Apr-06 4:49 

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.