Solved

MMControl control

Posted on 2010-08-15
4
1,089 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
ID: 33442088
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
ID: 33442251
<<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
ID: 33442299
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
ID: 33442348
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

895 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

13 Experts available now in Live!

Get 1:1 Help Now