Solved

MMControl control

Posted on 2010-08-15
4
1,077 Views
Last Modified: 2013-12-26
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.
0
Comment
Question by:Leithauser
  • 2
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Zhaolai
Comment Utility
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.
0
 
LVL 5

Author Comment

by:Leithauser
Comment Utility
<<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?
0
 
LVL 17

Accepted Solution

by:
Zhaolai earned 500 total points
Comment Utility
Take a look at this link:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;194751

Note: The Winsock control file c:\Windows\System32\MSWINSCK.OCX may need to be re-registered, or even may be corrupted. You may copy one from other machine and registered.
0
 
LVL 5

Author Comment

by:Leithauser
Comment Utility
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.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now