Has anyone else had trouble with their CDaoDatabase programs when compiling under Visual C++ 6.0 Service Pack 2?

The following code worked under v5.0 but now throws an exception.


CDaoDatabase myDatabase;

myDatabase.Open( "C:\MyDB.mdb" );




I have also tryed downloading some of the CDaoDatabase examples provided on this site, and those do not seem to work either. The problem appears to exist in the AfxDaoInit() function. I used the Visual Debugger to trace the problem to this function, and I noticed from some of the CDaoDatabase apps on this site, that they also suffer from the problem.

If anyone has any idea what the problem is or can offer a solution, I would appreciate it. Thanks in advance.