Solved

Problems registering comctl32

Posted on 1998-03-12
7
202 Views
Last Modified: 2011-09-20
I have written an installation program in vc5 to install a program that was written in vb4.  Everything
 works fine until the vb program tries to load the controls associated with the comctl32.ocx file.  I get
 the 'Can not load from file' message at run time.  This program will install and work on some computers
 and not on others.  I have tried to manually register the ocx and dll file with regsvr32 and get a
LoadLibrary error message 0x0000001f.  When I look at the registry, all of the CLSIDs seem to be the
 same as on the machines that are working.  I can't seem to find any differences.  Help Me!!!!
0
Comment
Question by:jrmcg
  • 4
  • 2
7 Comments
 
LVL 2

Author Comment

by:jrmcg
Comment Utility
Edited text of question
0
 
LVL 2

Author Comment

by:jrmcg
Comment Utility
Edited text of question
0
 
LVL 4

Expert Comment

by:jtwine100697
Comment Utility
  Do you require a specific version of comctrl32.*?

   There is a redist. version of the latest comctrl32 stuff that can be found at:"http://www.microsoft.com/msdn/downloads/files/40Comupd.htm".

   You can bundle it with your application, and have your setup program execute the comctrl32 installer.

   Install this version, and see if that fixes your problems.

-=- James.

0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 2

Author Comment

by:jrmcg
Comment Utility
jtwine:
Thanks for the suggestion.  I tried the upgrade on a computer that was unable
to run the program I had written and I still get the 'Can not load from file' error.
I have been under the assumption that the comctl32.ocx file is self-registering.
Is this correct?  Everything I have seen is pointing toward Yes but still there is
a registry problem.  Any other suggestions?
0
 
LVL 2

Author Comment

by:jrmcg
Comment Utility
In addition--  The only way I have been able to get it (vb program) to work
on a computer that would not run it after the installation has been to
actually load Visual Basic 4 on to the destination computer.  Obviously
this is not an option for actual distribution of my program.
0
 
LVL 4

Expert Comment

by:jtwine100697
Comment Utility
  Hmmm..  I have no experience with VB and/or use of the comctl32.ocx file...   But I would suggest checking the sizes and dates of the comctl32.ocx files on the machines where it works and does not work.  Maybe it is still a versioning problem.

-=- James.
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 150 total points
Comment Utility
More than likely what is happening on some of the computers is that they do not have any of the newer Microsoft software on them which doesn't put a copy of comctl32.dll on them. So your application will need to put a copy of comctl32.dll onto their computer and don't forget to register it. After this, you can register comctl32.ocx.

If this doesn't work, you will need to find out what else your program needs in terms of VB support (other than the VB runtime DLL). Are you shipping the VB runtime as well (MSVBM50.DLL)?


0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

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

11 Experts available now in Live!

Get 1:1 Help Now