A
Alan Roberts
Is it possible to have conditional references and code execution in csharp?
I have an app that plays Windows Media asx streams. It requires WMP 9+ to
be installed for this to work and so this is a pre-requisite for my app.
The app is also capable of playing real audio streams, for which it requires
the codecs from Real Alternative to be installed. With this design, I have
references to both the WMP type library and the RealAudio library defined
for the app.
At the moment, my app will only work if both WMP and the Real codecs are
installed on a given client machine. I would like to make the Real codecs
optional. In order for this to work the code would need to determine at
design time whether these exist and only instantiate objects based on them
if this is the case. Is there any way I can achieve this runtime
intelligence?
Cheers
Alan
I have an app that plays Windows Media asx streams. It requires WMP 9+ to
be installed for this to work and so this is a pre-requisite for my app.
The app is also capable of playing real audio streams, for which it requires
the codecs from Real Alternative to be installed. With this design, I have
references to both the WMP type library and the RealAudio library defined
for the app.
At the moment, my app will only work if both WMP and the Real codecs are
installed on a given client machine. I would like to make the Real codecs
optional. In order for this to work the code would need to determine at
design time whether these exist and only instantiate objects based on them
if this is the case. Is there any way I can achieve this runtime
intelligence?
Cheers
Alan