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.
sly_chandan
Knows some wx things
Knows some wx things
Posts: 41
Joined: Fri Sep 25, 2015 2:33 pm

How to setup wxDatabase library with wxwidgets app

Postby sly_chandan » Fri Sep 25, 2015 2:49 pm

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: 11386
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: How to setup wxDatabase library with wxwidgets app

Postby doublemax » Sat Sep 26, 2015 12:19 am

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
Knows some wx things
Knows some wx things
Posts: 41
Joined: Fri Sep 25, 2015 2:33 pm

Re: How to setup wxDatabase library with wxwidgets app

Postby sly_chandan » Sat Sep 26, 2015 9:05 am

I would like to use odbc with sql.

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

Re: How to setup wxDatabase library with wxwidgets app

Postby doublemax » Sat Sep 26, 2015 9:55 am

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
Knows some wx things
Knows some wx things
Posts: 41
Joined: Fri Sep 25, 2015 2:33 pm

Re: How to setup wxDatabase library with wxwidgets app

Postby sly_chandan » Sat Sep 26, 2015 2:34 pm

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: 11386
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: How to setup wxDatabase library with wxwidgets app

Postby doublemax » Sun Sep 27, 2015 9:37 am

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
Knows some wx things
Knows some wx things
Posts: 41
Joined: Fri Sep 25, 2015 2:33 pm

Re: How to setup wxDatabase library with wxwidgets app

Postby sly_chandan » Thu Oct 01, 2015 8:26 pm

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

Postby porthos » Sun Jan 10, 2016 10:30 pm

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/2016/01/compiling-wxdatabase-in-codeblocks-mingw.html


Return to “Database Related”

Who is online

Users browsing this forum: No registered users and 2 guests