wx2.9.1不支持ODBC,想要访问数据库怎么办呢?

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
smartnut
In need of some credit
In need of some credit
Posts: 3
Joined: Wed Aug 04, 2010 3:38 am
Contact:

wx2.9.1不支持ODBC,想要访问数据库怎么办呢?

Post by smartnut » Fri Aug 20, 2010 2:13 am

如题。 :wink:
SmartNut^#^

fancyivan
Experienced Solver
Experienced Solver
Posts: 80
Joined: Wed May 26, 2010 8:42 am
Location: Beijing, China
Contact:

Re: wx2.9.1不支持ODBC,想要访问数据库怎么办呢

Post by fancyivan » Fri Aug 20, 2010 5:42 am

smartnut wrote:如题。 :wink:
哦?还没用过2.9.x。
Oracle的话,自己用OCI封装一个。
SQLite有wxSQLite。
其它的没留意过。
OS: Win7 Ultimate SP1 x64(Windows XP Pro SP3 in VirtualBox)
Compiler: MinGW32 (gcc4.8.1 + gdb7.6.1)
IDE: Code::Blocks 12.11
Lib: wxWidgets3.0.0

samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 324
Joined: Mon Oct 06, 2008 12:55 pm

Re: wx2.9.1不支持ODBC,想要访问数据库怎么办呢

Post by samsam598 » Sat Aug 21, 2010 11:20 am

smartnut wrote:如题。 :wink:
附件是WXDB2.8 的修改版,可在WX2.9.0和WX2.9.1下用,你可以试一下.

另外DatabaseLayer1.8在WX2.8和WX2.9下都编译成功了,ODBC 部分测试可用,但中文记录会乱码,试着改了几次源码,还没搞定.
Attachments
wxDb28.zip
(60.83 KiB) Downloaded 313 times
Regards,
Sam
-------------------------------------------------------------------
Windows xp
VS.Net 2003/MinGW 3.4.5 C::B character set: UTF-8
wxWidgets github 3.0 RC1 Unicode Static build,Unicode Shared build.

arust
Knows some wx things
Knows some wx things
Posts: 34
Joined: Tue Jan 15, 2008 5:13 am
Location: Beijing, China

Post by arust » Sat Sep 25, 2010 10:33 pm

一定要用ODBC吗?大部分数据库都有C/C++ API的 :D

realfan
In need of some credit
In need of some credit
Posts: 4
Joined: Mon Sep 27, 2010 3:54 pm

Post by realfan » Tue Sep 28, 2010 1:07 am

研究一下debea吧,看能不能搞定.

realfan
In need of some credit
In need of some credit
Posts: 4
Joined: Mon Sep 27, 2010 3:54 pm

Post by realfan » Sun Oct 03, 2010 3:46 pm

To samsam598,将文件入到wx相应目录下,改配置文件也是比较麻烦的,能否将你改好的配置文件make文件等分享一下

samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 324
Joined: Mon Oct 06, 2008 12:55 pm

Post by samsam598 » Wed Oct 06, 2010 7:06 am

realfan wrote:To samsam598,将文件入到wx相应目录下,改配置文件也是比较麻烦的,能否将你改好的配置文件make文件等分享一下
在项目里我是直接include 文件的,没有改任何配置。原来在2.8下所用到的宏#ifdefine wxODBC 什么的在修改版里已经拿掉了,不需要。
Regards,
Sam
-------------------------------------------------------------------
Windows xp
VS.Net 2003/MinGW 3.4.5 C::B character set: UTF-8
wxWidgets github 3.0 RC1 Unicode Static build,Unicode Shared build.

Post Reply