我用DAO做Access2000的程序,加入
AFX_MANAGE_STATE(AfxGetModuleState());
AfxGetModuleState()->m_dwVersion = 0x0601;
两条语句来支持Access2000的。但是编译时一直出错,请教是怎么回事。F:\GEPT数据库录入\data\dataView.cpp(67) : error C2039: 'm_dwVersion' : is not a member of 'AFX_MODULE_STATE'
c:\program files\microsoft visual studio\vc98\mfc\include\afxstat_.h(191) : see declaration of 'AFX_MODULE_STATE'
Error executing cl.exe.
AFX_MANAGE_STATE(AfxGetModuleState());
AfxGetModuleState()->m_dwVersion = 0x0601;
两条语句来支持Access2000的。但是编译时一直出错,请教是怎么回事。F:\GEPT数据库录入\data\dataView.cpp(67) : error C2039: 'm_dwVersion' : is not a member of 'AFX_MODULE_STATE'
c:\program files\microsoft visual studio\vc98\mfc\include\afxstat_.h(191) : see declaration of 'AFX_MODULE_STATE'
Error executing cl.exe.
解决方案 »
- 静态文本框中,改变CreateFont第一个参数为什么字的大小没有改变?
- button控件消去虚线边框问题
- 请问哪位兄台有Fourier-Mellin(傅立叶-梅林)变换的算法或源代码?
- 输入代码后,下拉框有相应的内容弹出来,用什么控件?
- 请问一个关于picture的问题
- 求教执行错误原因:Debug Assertion Failed!
- CString "31256"如何format成“31,256”这种形式?
- 我的DCOM现在只能在服务端和客户端的账号和密码一致,而且都是admin的权限的时候才能用,有解决办法吗?
- NickTang,谢谢你的代码。
- 如何使用vc自带的堆模板?
- windows程序设计第五版
- ofstream时的string问题,在线等待!马上结帖!
ID: Q236991
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 #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
#include <afxdao.h>