Solved

DAO360 and DAO350? Both needed?

Posted on 2000-02-18
3
335 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
Comment Utility
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
Comment Utility
> 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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
paragon account problem 9 96
windows 10 how make picture as desktop background 2 47
centeredAverage challenge 8 119
zeroMAx challenge 20 76
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now