integra753
integra753

Reputation: 271

C# DirectShow / Direct X

My C# application uses DirectShow and requires DirectX to run. I would like check that DirectX is enabled at start-up, can anyone advise the correct method to do so?

Thanks

Upvotes: 0

Views: 690

Answers (2)

Roman Ryltsov
Roman Ryltsov

Reputation: 69724

DirectShow is not a part of DirectX. There is only some intersection in video renderer using DirectDraw and Direct3D, and wrappers over audio APIs which are in fact no longer independent but wrappers over other APIs. I would say there is nothing to check for and DirectShow is already an OS core component, but if you have some specific concerns then what are they? Maybe you could attempt to create some DirectX object directly on app startup and see if this attempt is successful.

Upvotes: 1

user420442
user420442

Reputation:

I think I'm right in saying if the DirectX DLLs aren't installed on the host machine, your application wont even start. Beyond that, you should always be checking that creation of DirectX objects succeeds before attempting to use them.

Upvotes: 0

Related Questions