Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. MMControl Help

MMControl Help

Scheduled Pinned Locked Moved Visual Basic
helpcomdebuggingquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Red Sunday
    wrote on last edited by
    #1

    I am using MMControl for playing a midi file on my software. I have never had it work on my computer, but the computer that I originally programmed on never had a problem. I am getting the error "Run-time error '424': Object required" and the Debug option takes me to the first line where I use MMControl. I have also tried it on someone elses computer and it works fine. I attempted to take the code from their computer back to mine and I get "Errors during load. Refer to .log' for details" I visited the log file and find Line 13: Cannot load control MMControl; license not found. Which to me is an odd error. What does this mean I need to do?:confused: Thanks in advance, Red Sunday ----------------- http://www.zachcalvert.com

    D 1 Reply Last reply
    0
    • R Red Sunday

      I am using MMControl for playing a midi file on my software. I have never had it work on my computer, but the computer that I originally programmed on never had a problem. I am getting the error "Run-time error '424': Object required" and the Debug option takes me to the first line where I use MMControl. I have also tried it on someone elses computer and it works fine. I attempted to take the code from their computer back to mine and I get "Errors during load. Refer to .log' for details" I visited the log file and find Line 13: Cannot load control MMControl; license not found. Which to me is an odd error. What does this mean I need to do?:confused: Thanks in advance, Red Sunday ----------------- http://www.zachcalvert.com

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You must copy over and register the MMCONTROL.OCX and, if you have it, the MCI32.OCX file on the target machine. You can't just copy it over and expect it to work. If it is already in the System32 directory on the target machine, unregister and register the control.

      C:\\WINDOWS\\SYSTEM32>**regsvr32 /u mmcontrol.ocx**
      C:\\WINDOWS\\SYSTEM32>**regsvr32 mmcontrol.ocx**
      

      Do the same for MCI32.OCX. If it still does not work, you'll need a fix the license information in the registry. See this[^] article on MSDN for more information. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      R 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You must copy over and register the MMCONTROL.OCX and, if you have it, the MCI32.OCX file on the target machine. You can't just copy it over and expect it to work. If it is already in the System32 directory on the target machine, unregister and register the control.

        C:\\WINDOWS\\SYSTEM32>**regsvr32 /u mmcontrol.ocx**
        C:\\WINDOWS\\SYSTEM32>**regsvr32 mmcontrol.ocx**
        

        Do the same for MCI32.OCX. If it still does not work, you'll need a fix the license information in the registry. See this[^] article on MSDN for more information. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        R Offline
        R Offline
        Red Sunday
        wrote on last edited by
        #3

        I tried the regsvr32 bit and it didn't work. First off, the working computer does not have mmcontrol.ocx it only has the MCI32.ocx. We un-registered and re-registered this file and get the same error. Next, we are using VB 6.0 on BOTH systems. Neither one are using the .NET structures. I appreciate your help...we are soooo stuck.:~ Red Sunday ----------------- http://www.zachcalvert.com

        D 1 Reply Last reply
        0
        • R Red Sunday

          I tried the regsvr32 bit and it didn't work. First off, the working computer does not have mmcontrol.ocx it only has the MCI32.ocx. We un-registered and re-registered this file and get the same error. Next, we are using VB 6.0 on BOTH systems. Neither one are using the .NET structures. I appreciate your help...we are soooo stuck.:~ Red Sunday ----------------- http://www.zachcalvert.com

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          In that case, the licesing is screwed up and you have to refere to the Microsoft page I put in my first post. What you need to do is get ahold of MS Support as directed in that page and they'll send you a reg file that will correct the problem. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups