wm9 equalizer

ifdnrg

New member
Joined
Jul 21, 2003
Messages
2
im trying to add crossfade to items in a loaded playlist


Dim playereq As WMPLib.IWMPEqualizerSettingsCtrl
playereq.crossFade = True

this builds ok bt breaks with

"
An unhandled exception of type System.NullReferenceException occurred in bs_playlists.exe

Additional information: Object reference not set to an instance of an object.

"
Can anyone help?
 
The object needs to be created if the function isnt Shared
Code:
Dim Playereq As New WMPLib.IWMPEqualizerSettingsCtrl Object Reference
Dim Playereq As WMPLib.IWMPEqualizerSettingsCtrl Nothing
 
thanks for the quick response

with that snippet (used in onformLoad)

Code:
Object Reference
Dim Playereq As New WMPLib.IWMPEqualizerSettingsCtrl    
Playereq.crossFade = True

gives me : New cannot be used on an interface.



Ive also tried WMPLib.WMPEqualizerSettingsCtrl but wasnt sure what the differenece between IWMP and WMP


thanks
 
If it is prefixed with an "I" it means it is an interface. There is no real functionality to it; its just a "shell" of a class that consists of the declarations of all of the properties and methods, but no code. In your case, you need to use the one without the "I" in front.

I suggest you read about polymorphism and other OOP concepts in your MSDN if you want to really understand it.
 
any followup to this? I cannot construct the

WMPLib.IWMPEqualizerSettingsCtrl

obeject without a runtime exception...

Thanks
 
I have the same problem.... i want to use the equalizer in the wmp9 usercontrol have tried everything here but it dosent work....

Help!!!
 
Back
Top