Solved

Runtime Error 20532

Posted on 2000-03-24
11
1,175 Views
Last Modified: 2012-08-14
I'm trying to trouble-shoot an old visual basic program that was written for a small company in my area.
the problem is that the guy that origionally wrote this program has passed on and didn't give the source code for the program.
I've installed the program and have gotten it running except that I get a runtime error 20532 whenever I try to print anything.
I had talked to the fellow about 6 months ago (2 months before he passed away) and he had mentioned something about registering a database within windows manually but couldn't remember how.

The exact error is
Run-time error "20532"
Missing database DLL

appreciate any help,

0
Comment
Question by:cheryldon
11 Comments
 
LVL 27

Expert Comment

by:Ark
ID: 2656080
Try
regsvr32 yourdbdll.dll
0
 

Expert Comment

by:jsteve
ID: 2656135
Search through the code for the number "20532". It is probably a user defined error
0
 

Expert Comment

by:sljbaqga
ID: 2656162
if you could put the code which gives troble here,that'll be easier to find the prob.

if the program was written in a vb version before vb5 then it probably mean some thing very different from what we use to think.

if it's possible to access the DB, then it should not give any prob while printing.
try to see which line of code exactly fails in debug mode

regards
Prasad
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2656341
Hey guys, reread the question:
.... and didn't give the source code for the ... (wink)

The question you can ask is:
What type of database is it?

I think you have to get the guy on the phone again for the database dll, but i agree that this should not be the source of your printing problem.
I think (again???) that the application may expect a specific printer (driver/name/...) that is not present, or somethink similar. Again, the only thing I see is to recontact the guy.

Good luck
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2656586
sljbaqga,

If your response contains:

  "How about..."
  "If you..."
  "What about..."

Don't post it as an ANSWER... Post as a COMMENT.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 14

Expert Comment

by:mcrider
ID: 2656599
I believe Ark may have your solution.

Cheers!®©
0
 
LVL 1

Author Comment

by:cheryldon
ID: 2657353
The person in question is Dead now.
It might be looking for a specific printer, I'd like some more info.

thanks
0
 
LVL 1

Author Comment

by:cheryldon
ID: 2657598
Adjusted points from 500 to 600
0
 
LVL 4

Accepted Solution

by:
wylliker earned 600 total points
ID: 2657628
There is no easy way to figure out what is missing.
A couple of things to try to troubleshoot ...

1 - Is there a complete running version of this application on any PC anywhere at that small company?

If there is, you might be able to identify DLL files on that machine that are dated around the same time frame as the EXE and possibly one of those might be the missing link.

If there is no running version, is it possible that the company may have some old backup disks/tapes that might be restored to a PC that could have a running version?


2 - What is it that is going to be printed - e.g. an invoice, a report - in other words is it something that is likely to be generated from a set of records?

3 - Since you have the program running and it is capable (I hope) of adding or updating information - can you identify the file the information is stored in? It's name and extension?

This might give a clue as to the database - and let's hope it isn't a proprietary concoction of the deceased developer.

Printing generally doesn't have anything to do with a database per se, unless there is an older version of Crystal Reports or some other Report Generator tool that was being used as part of the application?

4- Which brings the bigger question - what version of VB?  And approximately when was the Application created?

5- Is it a true executable or is it a P-Code executable?

Other experts help here - if it were a p-code exe could the exe be dumped using a hex viewer to provide any clues, i.e. embedded strings, etc.

6 - Are there any old docs, a specification, a quote, or better yet an itemized invoice for that developers services and software that he provided?
Anything.  Old e-mails, letters, a proposal.

7 - How good are the memories of the people at the company about any meetings or conversations about the application at the time it was being developed?


In reality, it may end up easier to recreate the application from scratch.  However, you never know, you could get lucky from some of this detective work.




0
 
LVL 1

Author Comment

by:cheryldon
ID: 2659535
I ran debug on the program and the dll that seems to be missing is pdbxbse.dll
I did a search of the net and it seems this guy mixed up vb3 and dbase when writing this prog.
I'm gonna try angelIII 's idea about getting ahold of the old 'puter tommorrow (mon).
pleae email me that app that you're talking about.

Gettin closer.....
thanks for the help....
0
 
LVL 1

Author Comment

by:cheryldon
ID: 2790838
Sorry it took so long to get back and
award the points, it turns out that the guy had installed some old crystal printer drivers in the system that were not on his installation disks.....
Thanks for the help.....
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

Suggested Solutions

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…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

747 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

13 Experts available now in Live!

Get 1:1 Help Now