Page 1 of 1

How to setup wxDatabase library with wxwidgets app

Posted: Fri Sep 25, 2015 2:49 pm
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

Re: How to setup wxDatabase library with wxwidgets app

Posted: Sat Sep 26, 2015 12:19 am
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

Re: How to setup wxDatabase library with wxwidgets app

Posted: Sat Sep 26, 2015 9:05 am
by sly_chandan
I would like to use odbc with sql.

Re: How to setup wxDatabase library with wxwidgets app

Posted: Sat Sep 26, 2015 9:55 am
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/

Re: How to setup wxDatabase library with wxwidgets app

Posted: Sat Sep 26, 2015 2:34 pm
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.

Re: How to setup wxDatabase library with wxwidgets app

Posted: Sun Sep 27, 2015 9:37 am
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.

Re: How to setup wxDatabase library with wxwidgets app

Posted: Thu Oct 01, 2015 8:26 pm
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.

Re: How to setup wxDatabase library with wxwidgets app

Posted: Sun Jan 10, 2016 10:30 pm
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