Solved

DAO360 and DAO350? Both needed?

Posted on 2000-02-18
3
349 Views
Last Modified: 2013-11-20
Okay heres the problem i just discovered yesterday.  I have a program that uses a Access Database. Well the problem is this.  It used to use dao350 with Visual 5 well we upgraded to Visual 6 and now heres the quarky part.  Dao350 is used to access the database and when it creates the database it uses dao360. I thought 360 was the replacement for dao350. I can not figure out how to make the program quit using 350 and i would hate like hell to send 350 and 360 in my distributions because thats over 1 meg vs 540k.

 Is there a way to make it use strictly either of them instead of both of them?  If not, what was MS reasoning for making two data access object files?  To make your apps bigger / Part of the conspiracy or what.  Kinda been popping my bubble on this one. I have looked everywhere and no one talks about 360. This is supposed to be the replacement right?  If i rename 350 to something else the program wont run. If i rename 360 the program doesnt recognize the db and when it trys to create a new one it crashes.

Thanks in advance
0
Comment
Question by:Stevex2
3 Comments
 
LVL 1

Accepted Solution

by:
cdepetris earned 50 total points
ID: 2537167
IN your apps initInstance function add the following line
AfxGetModuleState()->m_dwVersion = 0x0601;

This only works for the DLL version of MFC, if you statically link to MFC you need to rebuild the libs, checkout
"PRB: Unrecognized Database Format Error with Access 2000 Database" in the Knowledge base


Chris
0
 
LVL 11

Expert Comment

by:mikeblas
ID: 2537689
> Part of the conspiracy or what.  

I'm sorry to disappoint you, but there really is no conspiracy.

I coded MFC this way in order to make it backward binary compatible. If this trick wasn't used, then the newest version of MFC42*.DLL would suddenly need DAO360 without warning.

Unfortunately, this tweak didn't get as much big ink in the documentation as I had hoped.

But, you see, I went out of my way to help avoid problems. That's why conjecture about some sort of conspiracy feels like such a slap in the face to me.

..B ekiM
0
 

Author Comment

by:Stevex2
ID: 2542498
CDpetris
That worked perfect thanks.

MikeBlas
And also the Conspiracy thing meant only this. If they right a DLL that requires dao360 at one time only they need to make it so that the compiler uses all the new DLL's not just a one call function and revert to the old for the rest.  Sorry If I offended you. I just thought it was very very strange they would do something like that. That it would call the new 360 for only certain things and revert to 350 for others. Just didnt make any sense. Thanks again though
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 99
not able to insert into temp table 68 169
countEvens challenge 2 111
mapAB Challlenge 35 156
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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