Link to home
Start Free TrialLog in
Avatar of pub
pub

asked on

Install problems

I have a vb6 database project using dao. In the project I have a find routine that finds a record based upon a users choice from a list box. This feature uses an api call (sendmessages). The problem is that while running under vb6 on an nt4 box everything runs properly and when I run the same project again under vb6 on a laptop running win98 again everything works just fine but when I package the project and do an install on a clean nt4 or win 98 box I receive an error (invalid procedure or call) every time the find feature is used. Any ideas where I should look for the error?

Pub
Avatar of shareefpkd
shareefpkd

Can you please post the Err msg.
Make sure you are installing all the required files, including VBRuntime. (asycfilt.dll,comcat.dll,MSVBVM50.DLL,MSVBVM60.DLL,oleaut32.dll,Olepro32.dll,stdole2.tlb)
Use VS6 Depends to see what dependencies are missing for your program to work.
What service pack of Visual Basic are you using?  Make sure you are running at least SP3.  Before SP3 the setup and deployment wizard may distribute the wrong version of MDAC.  See the MSDN article: http://support.microsoft.com/default.aspx?scid=kb;en-us;310303 
also on win98 you may need to install dcom95
ASKER CERTIFIED SOLUTION
Avatar of Sethi
Sethi
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pub

ASKER

The specific error message is:
"Run-Time error '5':
Invalid procedure call or argument"

How do you run VS6 Depends?

Using Install Shield Express I did an active scan while running the program and get the same run-time error as when I install and run the app. It still runs flawlessly in my development machine. I did check the files posted by kokoloko and they were all there except MSVBVM60.dll which I consequently added but that didn't change anything, still have the error.

I'm running vb6 service pack 5. The Win 98 machine is the second edition.

I will check the focus control suggestion later today.

Thanks for the help, I'm quickly going bald!

Pub
Avatar of pub

ASKER

Focusing was the problem and with your comment I was able to find the error and fix it. Thanks for the help, you saved me many valuable hours of debugging time. Thanks again.

Pub