How to setup wxDatabase library with wxwidgets app

In this forum you can discuss database related issues which can be wxWidgets related, but also generic in nature.
Post Reply
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

How to setup wxDatabase library with wxwidgets app

Post by sly_chandan »

Hi,
I am a newbie in wxWidgets apps and have installed the wxwidgets 3.0.2 and code blocks 13.12 successfully.

I don't know how to setup the wxDatabase library with wxWidgets app.

Please tell me how to install wxDatabase.

Thanks. :D
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: How to setup wxDatabase library with wxwidgets app

Post by doublemax »

wxWidgets itself has no database component in wx 3.x, do you mean wxDatabaseLayer? Its last supported wxWidgets version is 2.6, so it might require some "fiddling" to make it work under wx 3.x.

Which database do you want to connect to?

https://wiki.wxwidgets.org/WxFAQ#wxODBC ... natives.3F
Use the source, Luke!
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: How to setup wxDatabase library with wxwidgets app

Post by sly_chandan »

I would like to use odbc with sql.
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: How to setup wxDatabase library with wxwidgets app

Post by doublemax »

Right now there is no wxWidgets database library that i could recommend. I think you should look into generic, non-wxWidgets libraries which should work well enough with wxWidgets.

Like SOCI or nanodbc, i'm sure there are more.
http://soci.sourceforge.net/index.html
http://lexicalunit.github.io/nanodbc/
Use the source, Luke!
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: How to setup wxDatabase library with wxwidgets app

Post by sly_chandan »

Like I said I am new to wxwidgets, so I don't know what I should be doing.

I can follow a step by step approach if you can guide me using any database library that I could use with CodeBlocks.

Thanks.
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: How to setup wxDatabase library with wxwidgets app

Post by doublemax »

Sorry, i don't use CodeBlocks and i've never used any of the libraries i mentioned. But this is neither CodeBlocks or wxWidgets specific, try looking for usage instructions of the respective library.
Use the source, Luke!
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: How to setup wxDatabase library with wxwidgets app

Post by sly_chandan »

Which IDE do I use for wxwidgets then? [-o<

Please tell me how to use the database layer in code blocks.
I am able to install CodeBlocks 13.12.
porthos
In need of some credit
In need of some credit
Posts: 3
Joined: Sat Dec 05, 2015 11:44 pm

Re: How to setup wxDatabase library with wxwidgets app

Post by porthos »

Here is a detailed instruction on how to compile wxDatabase library using Code::Blocks and MinGW on Windows machine. Check it out: http://appdevcodeblocks.blogspot.com/20 ... mingw.html
Post Reply