Solved

MMControl control

Posted on 2010-08-15
4
1,124 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…

756 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