Solved

VC++ activeX dll is not regsvr32-ing

Posted on 2000-05-15
15
505 Views
Last Modified: 2013-12-03
My VC++ activeX dll is not regsvr32-ing successfully on my user machine.  It works ok on my development machine.  Maybe the user is missing some file that the mfc library update supplies?  Unlikely, since my user has Win98 SE.  

I am getting a loadlibrary failed 0x0000485 - but then if he tries to regsvr32 XXXjunknonexistentAnyText  he gets the same message!! :-(   He is however browsing and typing the correct path.

At first I gave him a debug version and thought that since he didn't have the mfc*d.dll's (notice the 'd') - then that was the reason it wasn't working.  Now that I've given him a production version dll, it hasn't helped :-(

Ps. Also - Where can I download Microsoft Library Update file so that my mfc42*.dll files are up to date?  I want a *working* link to an url that gives me a file. The active setup stuff ms makes you go through is driving me crazy!
0
Comment
Question by:abulka
  • 6
  • 5
  • 3
  • +1
15 Comments
 
LVL 15

Expert Comment

by:NickRepin
Comment Utility
http://activex.microsoft.com/controls/vc/mfc42.cab

0x0000485  - "Library not found".
Supply your user with the required DLL.
0
 
LVL 15

Expert Comment

by:NickRepin
Comment Utility
You have to redistribute mfc42.dll, olepro32.dll, msvcrt.dll (they are in the .cab).

If I'm not wrong, you have to register mfc42.dll and olepro32.dll as well.
0
 
LVL 15

Expert Comment

by:NickRepin
Comment Utility
0
 
LVL 15

Expert Comment

by:NickRepin
Comment Utility
0
 
LVL 23

Expert Comment

by:chensu
Comment Utility
You can use the Depends utility to check what DLLs the control is using. The Depends utility comes with the Platform SDK or Visual C++.
0
 

Author Comment

by:abulka
Comment Utility
Scanning my custom VC++ dll, it seems that the missing dll was MSVCP60.dll, but when this was added to c:\windows\system the message changed into:
  Loadlibrary failed, getlasterror
  error code 0x0000001f.

which I consider is progress. :-)  I am downloading the mfc patch now to see if it helps...
0
 

Author Comment

by:abulka
Comment Utility
Running the mfcinst.exe updated something but the regsvr32 command still fails :-(

I'm sure I have all the 1st level dlls that are referred to by my custom activeX dll.  

MFC42.DLL
MSVCRT.dll
KERNEL32.dll
USER32.dll
GDI32.dll
OLEAUT32.dll
MSVCP60.dll

but whether they are upto date and what THEY refer to is another matter.  I would have thought that running the mfcinst.exe patch would have fixed things.  I'm running out of ideas.  I've even tried running different versions I found of regsvr32 on my 98 machine...
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Expert Comment

by:jonjon
Comment Utility
I've run into similar problems when distributing apps.  The Microsoft Package and Deployment Wizard will build an easy installation of your app and include all dependent files.  When installing the app, the P&D Wizzard will safely determine if a Dll needs to be installed.  I did have to apply the SP3 for Visual Studio for it to work properly.

0
 

Author Comment

by:abulka
Comment Utility
Dependency walker determined that MSVCP60.dll was corrupted/missing - a great tool from:

http://msdn.microsoft.com/library/techart/samples/5289.exe

Hey NickRepin - I will accept your answer since it supplied me with the correct mfc - which was also part of the problem.  By the way any idea if I should supply most of the common MFC dlls in my app's installshield app, or should I just tell my users to install mfs (from the link you supplied me) if they have problems?

0
 

Author Comment

by:abulka
Comment Utility
I meant of course
   "just tell my users to install mfc"

I could also tell them to install the common controls update at http://www.microsoft.com/msdownload/ieplatform/ie/comctrlx86.asp  - which seems another useful download.  

Again the same question, should I be building all these dlls (mfc & common controls) into my OWN installshield install?
0
 
LVL 15

Accepted Solution

by:
NickRepin earned 70 total points
Comment Utility
>>- I will accept your answer since it supplied me with the correct mfc

Thank you

>>Again the same question, should I be building all these dlls (mfc & common controls) into my OWN installshield install?

Depends on you.
With IS, it would be easier to user, but would icrease the size of the setup program.

With download - reduced exe size, but more complex for users.
0
 

Author Comment

by:abulka
Comment Utility
Ok then - that's what I thought.  

If I go for the big all in one safe installshield install - any idea how I know the names of all the relevant dlls in mfc / common controls, and which ones should be registered?
0
 
LVL 23

Expert Comment

by:chensu
Comment Utility
>Dependency walker determined that MSVCP60.dll was corrupted/missing - a great tool from:

http://msdn.microsoft.com/library/techart/samples/5289.exe

Isn't the tool what I suggested?
0
 

Author Comment

by:abulka
Comment Utility
chensu - oops - I probably should have awarded to you.

I have created another question re Dependency walker for you to claim.
0
 
LVL 23

Expert Comment

by:chensu
Comment Utility
Thank you.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

762 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

9 Experts available now in Live!

Get 1:1 Help Now