Solved

MSComCtl not present. Is it replaced

Posted on 2011-09-18
9
312 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
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 101

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month5 days, 3 hours left to enroll

635 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