wxDatabaselayer and wxWidgets 2.9.0

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
javlacerda
In need of some credit
In need of some credit
Posts: 2
Joined: Thu Dec 03, 2009 11:34 am
Location: Portugal

wxDatabaselayer and wxWidgets 2.9.0

Post by javlacerda »

Hi,

I'm new to wxWidgets and I'm having some troubles with wxDatabaseLayer (OdbcDatabaseLayer, VC++ 2008 Express, WinXP)

In the compilation process, I get one error in OdbcDatabaseLayer, method Open(), line 114

Code: Select all

void* connectionCharBuffer = (void*)m_strConnection.c_str();
saying that it is not possible to convert wxCStrData to void*. I changed that line to

Code: Select all

void* connectionCharBuffer = (void*)m_strConnection.wc_str();
and the compilation finished sucessfully.

Working with the library, I can connect to the database and run queries but, if an error occurs the error code is always 0 and the error text is not legible. Using an wxMessageBox to display the message it only displays small squares in text.

In the readme, it says that databaselayer is only tested with 2.5 and 2.6 and i didn't find any information about 2.9.

Has anyone worked with wxDatabaseLayer and wxWidgets 2.9.0?

TIA
Post Reply