给你转一个
//Access2000 database and DAO
To read Access 2000mdb, i added the following code :
AfxGetModuleState()->m_dwVersion = 0x0601;
and then i could read Access 2000 mdb,
Your project config must be set to shared dll
Insert into the initinstance of your myprojapp.h file as
shown below
[ccode]
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
AfxGetModuleState()->m_dwVersion = 0x0601;
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically'
#endif