DAO/Jet Database problem

hello,

  i wrote a program which uses DAO to access an Access database (.mdb).
 it works fine on my computer, but refuses to run on another computer with a fresh installation of WinNT 4. i get the error message "Can not initialize DAO/Jet databasemode" (in german: "Initialisierung des DAO/Jet Datenbankmodus nicht möglich").

 what do i have to do to get it running on all computers? which files do i have to copy to the system?

 thanks, Markus
MarkusStAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jkrCommented:
Did you install the DAO package? There's a folder named 'redist' on the VC++ CDOM where you can find the setup program, which is 'redistributable', i.e. MS allows to ship that with your application...
0
MarkusStAuthor Commented:
hi jkr,

 thanks for the fast answer. i just had the msvcrt.dll and mfc42.dll copied with the program. i didn't know i have to install the database drivers seperately.

anyway.. i found 2 "redist" directories, one in \DAOSDK and the other one in \VC98. i ran the setup program in the \DAOSDK\REDIST directory.. it copied some dll files and my program seems to work fine now. however, during installation it said that odbc32.dll is missing. is it enough if i just copy odbc32.dll from the \OS\SYSTEM directory to the computers, or is there some other setup program i have to run?

-Markus
0
chensuCommented:
INFO: Redistributing DAO Components with DAO Apps
http://support.microsoft.com/support/kb/articles/Q143/2/92.asp

HOWTO: Redistributing DAO with Your Visual C++ 5.0 Application
http://support.microsoft.com/support/kb/articles/Q167/5/23.ASP

Redistributing Microsoft Visual C++ 6.0 Applications
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/techart/redistribvc6.htm
0
jkrCommented:
>>i found 2 "redist" directories, one in \DAOSDK and the
>>other one in \VC98.

It's the latter one - there's also a 'redistrib.wri' that describes what files are needed... Being at home, I have no VC++ here, so I can't tell you the exact path. But the links chensu postd should also give a good guidance...

PS: Gruß aus dem Schwabenland ;-)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.