Solved

MSComCtl not present. Is it replaced

Posted on 2011-09-18
9
297 Views
Last Modified: 2012-05-12
Hi everyone

I have a vb6 app that works fine. It references mscomctl.ocx

My understanding is this active x control is installed with MS Office. My app does work with
any versions of Office right up to Office 2010. Without Office installed it doenst work.

Whats interesting is, it seems to only be present for WIn XP and Office, but not Windows 7 and Office

Sure enough, my app wont work in Windows 7 even with Office installed.

How can I make my app work with Win7 and Office? Is there a replacement for this control?
I dont want to have my app have to register a file, since some of my users dont have local admin rights.

I appreciate the help.

Thank you
H
0
Comment
Question by:HenryV1955
9 Comments
 
LVL 14

Assisted Solution

by:VBClassicGuy
VBClassicGuy earned 166 total points
ID: 36557302
Include MSComCtl in your installation script/package.
0
 

Author Comment

by:HenryV1955
ID: 36557339
So it will be included when I compile it into an exe?

ok, How do I add it? I'm not a great expert in this area
0
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 166 total points
ID: 36557425
The control is delivered with VS6, not with Office or the OS.
You need to include it in your application distribution.
VS6 also has the Package and Deployment Wizard. Use that to create an installation package. If you are using the control in the code, the file will be included in the package automatically.
0
 
LVL 22

Accepted Solution

by:
danaseaman earned 168 total points
ID: 36560404
Windows Vista and Windows 7 do not ship with all the activex that vb6 may need.
In particular MsComCtl.Ocx is not included. It may be on the target machine via some other application installer.
See http://msdn.microsoft.com/en-us/vbasic/ms788708.aspx, section "Supported and Shipping in Windows Vista, Windows Server 2008, and Windows 7".
MsComCtl.Ocx should be installed and registered via a installer like PDW, InnoSetup, or Tarma InstallMate 7.
Modern installers like Tarma InstallMate 7 at www.tarma.com run elevated to install and register components required by your application.
 
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 13

Expert Comment

by:Surone1
ID: 36560653
even if you use the package and deployment wizard package to install the ocx you may need to register it manually.
0
 

Author Comment

by:HenryV1955
ID: 36571133
Hi guys, thanks for all your input

My currrent app doesnt require any install package and therefore doesnt require registering any files.
They only need to run the exe

I would prefer to keep it that way since many of my users are at work and dont have admin rights, so wouldnt be able to reg a file.

I'm assuming the comctl file in WIn7 would be replaced by something else. Cculdnt I just reference that in my app. Acutally comctl isnt 'referenced' in my app. Its listed under projects/components controls. Anyway, it would be nice if I could do the same for whatever the WIn7 file is called.

Any thoughts?

Thanks
H
 
0
 
LVL 22

Expert Comment

by:danaseaman
ID: 36571252
As mentioned above, MsComCtl.Ocx is not included in Windows7 install.
You must install it and register it.
There is no way around not using a proper installer.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 36998462
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…

708 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

19 Experts available now in Live!

Get 1:1 Help Now