[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

dao database access

Posted on 2002-05-13
3
Medium Priority
?
181 Views
Last Modified: 2010-04-02
I previously had software access a access 97  database using visual c++ and the CDatabase and CRecordset, class parameters including the afxdao.h file.   This code and application was running on a windows nt machine.  When we upgraded to run on a windows 2000 system the dao object can nolonger find the jet engine.  
Now for the question.  Has the MFC class been updated to handle a access 2000 database.  Or has any one else run into this probleme and can help me determine if I am missing a dll or jet driver on the Windows 2000 system.

For further refrence I also have a VB application access a 2000 database on the windows 2000 system that functions fine.  The visual studio 6.0 was used to develope all applications.  

0
Comment
Question by:LBoorn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 49

Accepted Solution

by:
DanRollins earned 600 total points
ID: 7007292
To test base connectivity, I use this technique:

1) Use the AppWizard to create a dialog-based App

2) Press Ctrl+W and click [Add Class]>>New

3) Name: CRsTest    Base class: CDaoRecordSet [OK]

4) In the next step, you should be alble to locate the mdb file and the ClassWizard should be able provide a list of tables and you cshould be able to bind all of the columns.

5) In an OnButton handle, use simple code like:

CRsTest crs;
crs.Open();

and you can use the debugger to examine the crs object and you should see data from the database.

=--=-==-=-=-=-=-=-
If step 4 fails, then the DBMS is not setup correctly.  You can try using the Control Panel / ODBC applet to see if ODBC is able to talk to the database.  You can try re-installing Access and MDAC.  

Describe what happens when you try these things, and I'll help you diagnose the problem.

-- Dan
0
 

Author Comment

by:LBoorn
ID: 7008444
Thank you for your response,  After further digging we found that the MDAC did not have the correct jet database drivers.  We updated our Windows 2000 and MDAC and the application operates correctly so far.  I will post again if we experience further problemes.
0
 

Author Comment

by:LBoorn
ID: 7008447
Thank You for your help.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

656 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