Solved

Run-time Error 48. Error loading DLL

Posted on 1998-12-07
5
1,325 Views
Last Modified: 2012-06-27
I encounter this run-time error only when I run the executable on a machine that does not have the VB 4.0 development environment on it. The app was developed with VB4.0 and has a couple of 3rd party controls in it.
The application is wrapped using Install Shield before being distributed.
Is there a procedure, utility or VB method which will help me trace which DLL is the cause of the above problem.
0
Comment
Question by:malcolmm
  • 3
5 Comments
 
LVL 2

Expert Comment

by:cedricd
ID: 1448529
i don't know if there's a method to trace it but all i know is that one or multiple dll (and / or ocx) are badly installed.
verify your install shield (if all the used ocx are present and the dll declared by you also).
You can also add manually the dll and the ocx.
you can also see at the msdn.microsoft.com/vbasic to see if there's a service pack for vb4.0. (all i know is that the install shield of vb4.0 isn't very good,the vb5.0's install shield is better).

hope it help you.

0
 

Author Comment

by:malcolmm
ID: 1448530
Thanks for the reply cedricd. I know how to manually register a DLL or OCX, but my problem is that do not know which DLL or OCX to register. Also, I'm not using the setup wizard supplied by VB but a program called Install Shield Express.
0
 

Author Comment

by:malcolmm
ID: 1448531
I have solved this nightmare problem on my own. How can I reclaim the points.
0
 
LVL 4

Accepted Solution

by:
anzen earned 70 total points
ID: 1448532
Go to http://pobox.com/~stevemil (the Steve Miller's home page)
there You'll find a program called "Dependency Walker" which
allows You to see all the dependencies of a particular file, next
examine the APP files' dependencies and see which one is missing

0
 

Author Comment

by:malcolmm
ID: 1448533
Thanks anzen, I have solved the problem but I will take a look at this program.
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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

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

18 Experts available now in Live!

Get 1:1 Help Now