我用VC6.0做了一个访问ACCESS数据库的程序,用的是DAO,为什么在我的机子上编译运行正常,但是到别人的机子上就出错呢?
(开始用ACCESS2000生成的数据库在本机上都不行,后来将它转换成早期版本,在本机上才运行正常)
请高手指点,不然就交不了货了,惨哪!!
(开始用ACCESS2000生成的数据库在本机上都不行,后来将它转换成早期版本,在本机上才运行正常)
请高手指点,不然就交不了货了,惨哪!!
解决方案 »
- 内网udp广播,广播源机器的IP地址是否需要符合一定的条件? 接受广播的机器地址/地址段又要符合什么条件?
- 向各位师兄求点经验
- Random函数包含在哪个头文件~~
- 如何制作类似visio、Protel那样元件拼装图形界面(分不够再加)
- 讨论一下,做一个类似WPE的程序需要怎样?
- Dialog上Style=popup,border=none,但是在最小化窗体时,点右键,没有弹出系统菜单怎么办
- edit控件的多行显示?
- 进程 的 相关 程序!
- 俺成立了个哥们小组,只要是哥们的问题,我们哥们就优先回答
- 就剩0分了:把一个CDC *pDC设置成全局变量好不好?
- 急,我在Win2000下右击网络邻居时,出不来修改IP地址的对话框,这个Win2000是我新装的,我该怎么办?
- CEditFrame中的问题。
另外,不要用Access2000,好像不支持。
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
[/ccode]
Hope that helps
Submitted By: gatman (2001/06/08)
就是access 文件的驱动程序
{
AfxEnableControlContainer();加上: AfxGetModuleState()->m_dwVersion = 0x0601;
}
就OK拉
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