淡泊明志、宁静致远
A Diamond is just a piece of Coal that did well under Pressure.
bug happened when operates on Access 2003 via vc6.0
1
SYMPTOMS(症状):
2
When opening a database created with Access
2000
or
2003
through MFC DAO classes in Visual C
++
, I get the following error message:
"
Unrecognized database format
"
.
3
4
CAUSE(原因):
5
This error message occurs because the MFC DAO classes that ship with Visual C
++
6.0
load DAO
3.5
(Dao350.dll) by
default
. DAO
3.5
uses Jet
3.5
, which can only open Jet
3.5
format (or earlier) databases. Access
2000
creates Jet
4.0
format database files, which are unrecognizable to Jet
3.5
. To successfully open an Access
2000
database using the MFC DAO classes, you need to use DAO
3.6
(Dao360.dll). DAO
3.6
uses Jet
4.0
, which can open any available Access database format.
6
7
RESOLUTION(解决办法):
8
Currently, there is no workaround to using AppWizard with Access
2000
data sources.
9
For your application to use version
3.6
of DAO, you must update the version of MFC at run time to MFC version
6.01
. To
do
this
depends on whether you are building the application to use the MFC DLL or to build with the
static
libraries
for
MFC.
10
If you are linking with the MFC DLL(Pjoect
->
Settings
->
General
->
Microsoft Foundation Classes,choose
"
Use MFC in a Shared Dll
"
), you can specify that you want MFC to use DAO
3.6
by inserting the following line of code before you open an Access
2000
database:
11
AfxGetModuleState()
->
m_dwVersion
=
0x0601
;
12
Insert
this
line in the CYourApp::Initinstance() function of your program.
posted on 2008-03-30 00:03
挑灯看剑
阅读(269)
评论(0)
编辑
收藏
引用
所属分类:
C/C++
只有注册用户
登录
后才能发表评论。
Powered by:
IT博客
Copyright © 挑灯看剑
<
2008年3月
>
日
一
二
三
四
五
六
24
25
26
27
28
29
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
导航
新随笔
管理
公告
【自我介绍】 08年南开大学硕士毕业 最近关注:算法、Linux、c++、高并发 爱好:滑旱冰、打乒乓球、台球、保龄球
常用链接
我的随笔
我的评论
我参与的随笔
随笔分类
(139)
algorithm(5)
(rss)
Android(4)
(rss)
C/C++(35)
(rss)
Linux内核驱动编程(14)
(rss)
Python(1)
(rss)
嵌入式系统开发(7)
(rss)
工作随笔(26)
(rss)
情感生活(14)
(rss)
数学(1)
(rss)
杂文(2)
(rss)
架构设计/设计模式(15)
(rss)
汇编艺术(3)
(rss)
英语(5)
(rss)
计算机经典书
(rss)
通信技术(7)
(rss)
文章分类
Linux kernel
(rss)
我常去的网站
南开大学bbs
水木BBS
技术博客(都是大牛)
Chris Lattner--LLVM的架构设计师
Hacker site
Marat Fayzullin--英特尔的高级项目经理,Emulator大牛
MVP Tips, Techniques, and Goodies
Vince Huston---设计模式
Walter Bright --D语言发明者、编译器大牛
编译器
技术站点
codeguru
codeproject
Emulator
How to develop your own Boot Loader
linuxsir
Microsoft--vc++ team
netexpert
osdev.org
osdever.net
planet-source-code
rohitab
wiki.osdev
搜索
积分与排名
积分 - 169712
排名 - 36