Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

VC++6.0 - Problem connecting to MS-Access 2000 database

Posted on 2003-02-23
2
Medium Priority
?
231 Views
Last Modified: 2010-04-17
Hi,
I am trying to create new DAO class (from Visual Studio classwizard) to connect to Access 2000 database.  Since MFC 6.0 uses DAO 3.5 and Access 2000 uses DAO 3.6, I did add the following line to the 'initinstance' fuction so that I can use DAO 3.6.
AfxGetModuleState()->m_dwVersion = 0x0601;

But still when I try to create a new class (using class wizard) derived from CDaoRecordset class, I get the error message saying 'unrecognized data format'. Do I have to do anything else to use Access 200 database. I did select dynamic MFC library linkage while creating the project.

Thanks,
Sadanand
0
Comment
Question by:sadanand78
2 Comments
 
LVL 16

Accepted Solution

by:
twalgrave earned 150 total points
ID: 8009770
0
 

Author Comment

by:sadanand78
ID: 8014080
Hi,
Thanks twalgrave. I tried the same. The steps work if you try to create a DAO object through your code (hardcoded). I get same error('unreocognized format') if I try to add a new DAO class through the class wizard even after following all the steps.

Thanks,
Sada
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
No other job is as rewarding and demanding as building an iPhone app is. It is not really in the hands of the developer for the success of an iPhone app. Many factors operate jointly for every iOS application's success in the market.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Starting up a Project

581 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