Link to home
Start Free TrialLog in
Avatar of Leithauser
Leithauser

asked on

MMControl control

A client has asked my to modify his code that was written in VB6. When I try to load his code, I get an error message that refers me to the log file. The log file says

Line 725: Class MCI.MMControl of control MMControl1 was not a loaded control class.

I have looked in the Components and References sections under the Project menu, and cannot find MMControl or MCI. What is more, his code does load other controls automatically (like Winsock), so the MMControl must not be installed properly on my computer. Can anyone tell me how how to make this work (i.e., install it, get it registered, etc.)?

Note: I have tried this on two different computers. Same results.
Avatar of Zhaolai
Zhaolai
Flag of United States of America image

1. Open your project in VB6,
 2. Press CTRL + T to bring up Components list. Scroll down to locate and check Microsoft Multimedia Control 6.0 (SP3). The actual control file is C:\Windows\System32\MCI32.Ocx.
 3. Click OK to add the control to your component list.
 4. Save the project and close the project.
 5. Re-open the project.
Avatar of Leithauser
Leithauser

ASKER

<<1. Open your project in VB6,
 2. Press CTRL + T to bring up Components list. Scroll down to locate and check Microsoft Multimedia Control 6.0 (SP3). The actual control file is C:\Windows\System32\MCI32.Ocx.
3. Click OK to add the control to your component list.
4. Save the project and close the project.
5. Re-open the project>>
I am having some trouble with a "Line 26: Cannot load control Winsock5; license not found." error message. I have VB 6 installed. Any idea why there would be no license?
ASKER CERTIFIED SOLUTION
Avatar of Zhaolai
Zhaolai
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks. That did it. I was looking for a component in the Components list called MMControl, instead of Microsoft Multimedia Control. Also, my license was apparently corrupted. Your link above solved that. Good answers.