Run Time Error '91' in Equalizer Settings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ali Rizwan
    Banned
    Contributor
    • Aug 2007
    • 931

    Run Time Error '91' in Equalizer Settings

    Hello all....
    I m getting this error in Windows Media Player Equilizer Settings.....

    Run Time Error '91':
    Object Variable or With block Varible not set..

    I have coded this:

    Code:
     Dim EQUI As WMPEqualizerSettingsCtrl 
     
    Private Sub Command1_Click()
    MsgBox EQUI.presetCount
    End Sub
    This is Very Urgent Plz....

    >> ALI <<
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Not sure of the details, but when you create an object variable it generally has to be set to point to an instance of an object. This might mean you need a Set EQUI = ... line in there somewhere, or it might be as simple as changing your declaration to Dim EQUI As New WMPEqualizerSet tingsCtrl.

    Have a play, and see what works for you.

    Comment

    • Ali Rizwan
      Banned
      Contributor
      • Aug 2007
      • 931

      #3
      Thanx Killer....
      I have already chechk this too and get error
      Active X object cannot be created..

      Thanx

      I have searched web for 4 days but don't found any solution, if you have some search which can be helpfull for me then plz send that to me.

      Thanx
      >> ALI <<

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        To quote the VB6 Object Browser...
        Class WMPEqualizerSet tingsCtrl
        Member of WMPLibCtl
        WMPEqualizerSet tingsCtrl: Not Public. Internal object used by Windows Media Player.
        This is probably the source of your trouble.

        Comment

        • Ali Rizwan
          Banned
          Contributor
          • Aug 2007
          • 931

          #5
          Thanx Killer,
          But i know this all,
          I want that how can i declare this class and how can i use its components in my Project.

          Thanx
          >> ALI <<

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            According to the documentation, it looks as though you can't.

            I'm perfectly happy to be proved wrong though, if anyone else knows better.

            In the meantime, are you sure there isn't a similar product out there that you can use instead?

            Comment

            • Ali Rizwan
              Banned
              Contributor
              • Aug 2007
              • 931

              #7
              It may be but i think that will not reliable as wmp ocx is. this ocx is already regestered in every version of windows instead of all others.

              And do you know how can we made equilizer using our own codings???
              If have searched a lot but didnt find something...

              Thanx
              >> ALI <<

              Comment

              • Killer42
                Recognized Expert Expert
                • Oct 2006
                • 8429

                #8
                Well, I certainly don't. You might try asking that in the Software Development forum.

                Comment

                Working...