Search found 267 matches

by jb_coder
Mon Feb 16, 2009 12:20 am
Forum: C++ Development
Topic: databaselayer ODBC "invalid precision value" error
Replies: 21
Views: 4332

Thanks for the OdbcResultSet fix. I've committed it to source control. I had to make some minor changes to handle NULL values consistently with other backends.
by jb_coder
Tue Feb 03, 2009 8:49 am
Forum: C++ Development
Topic: databaselayer ODBC "invalid precision value" error
Replies: 21
Views: 4332

Do I need to change my OS to use Russian or Ukrainian or just the data that's saved in the database? I'm assuming that I'll need to compile wxWindows and DatabaseLayer with UNICODE as well.
by jb_coder
Sun Feb 01, 2009 8:55 pm
Forum: C++ Development
Topic: databaselayer ODBC "invalid precision value" error
Replies: 21
Views: 4332

The latest code in subversion for DatabaseLayer should fix any issues. Please let me know if there are any more issues.
by jb_coder
Wed Jan 28, 2009 12:48 pm
Forum: C++ Development
Topic: databaselayer ODBC "invalid precision value" error
Replies: 21
Views: 4332

Using these contributions and a few other tweaks, I've got the ODBC backend passing all the DatabaseLayer unit tests with SQL Server and Postgresql locally. I'll try to commit these changes by the end of this weekend.

Thanks!
by jb_coder
Wed Jan 14, 2009 5:43 pm
Forum: General Development
Topic: wxQT?
Replies: 3
Views: 913

Unfortunately I've had a difficult enough time finding time to work on DatabaseLayer so I definitely wouldn't be able to take on a wxQT port.

Sorry
by jb_coder
Wed Jan 14, 2009 2:11 pm
Forum: General Development
Topic: wxQT?
Replies: 3
Views: 913

wxQT?

This has been asked about in the past, but since QT is going to be released under the LGPL license this year (http://www.qtsoftware.com/about/news/lg ... dded-to-qt), does anything think that it's worth targeting QT as a platform?
by jb_coder
Mon Jan 05, 2009 11:28 am
Forum: wxCode
Topic: Compiling DatabaseLayer with Postgresql support on Windows.
Replies: 4
Views: 1066

You need to have the Postgres DLL's somewhere in your library path. This safest way to do that is to put them alongside your executable. It is possible to put them in the WINDOWS\System directory also to achieve this, but I think MS frowns on that. Here are some links that might be helpful determini...
by jb_coder
Mon Jan 05, 2009 11:04 am
Forum: wxCode
Topic: databaselayer ODBC: problems building DLL
Replies: 4
Views: 1242

Does the directory "..\lib\gcc_dll" exist? One problem with the current Makefile is that it doesn't always create the output directories.
by jb_coder
Tue Nov 18, 2008 9:51 am
Forum: wxCode
Topic: DatabaseLayer and foreign key functionality
Replies: 3
Views: 1190

This post may help with adding the functionality to the Firebird backend: http://www.chillisoft.co.za/blog/?p=165
by jb_coder
Mon Nov 10, 2008 1:52 pm
Forum: Compiler / Linking / IDE Related
Topic: Cannot make wxDatabaselayer on Ubuntu...Help,please...
Replies: 1
Views: 375

The problem may be caused by the original GNUmakefile being written exclusively for static wxWidgets libaries. This was fixed in the subversion repository for DatabaseLayer with the checkin http://wxcode.svn.sourceforge.net/viewvc/wxcode?view=rev&revision=784 If you pull down the latest version of G...
by jb_coder
Mon Nov 10, 2008 1:44 pm
Forum: wxCode
Topic: Compiling DatabaseLayer with Postgresql support on Windows.
Replies: 4
Views: 1066

Have you installed the postgresql development packages which should include the header and library files?
by jb_coder
Thu Oct 23, 2008 5:13 pm
Forum: C++ Development
Topic: Beginner: To stupid for wxwidgets?
Replies: 11
Views: 1685

When you use "%s" in the wxString::Format() calls, you're sending a wxString as the parameter rather than a char string pointer. Try calling the c_str(), mb_str(), or wc_str() function on the string that you're passing in instead. For example m_FileName = wxString::Format(_T("%s\\logfiles\\%d-%d-%d....
by jb_coder
Fri Oct 17, 2008 4:47 pm
Forum: wxCode
Topic: DatabaseLayer - How do I clear the ResultSet?
Replies: 4
Views: 956

The DatabaseLayer keeps a handle to the ResultSet and cleans it up for you in its destructor. However not all database connections would be in a good state while the ResultSet is still open. If you set ResultSet = NULL, the DatabaseLayer will be the only one with a reference to it, and the ResultSet...
by jb_coder
Sat Oct 04, 2008 3:20 pm
Forum: wxCode
Topic: DatabaseLayer:How does the resultset handle memory
Replies: 1
Views: 774

That depends on the database backend being used. For example, PostgreSQL and SQLite use PQgetvalue and sqlite3_column_* respectively to retrieve the result set values directly. In contrast, MySQL requires wrappers to retrieve the result set values and more memory management is needed in the Database...
by jb_coder
Fri Oct 03, 2008 3:19 pm
Forum: wxCode
Topic: DatabaseLayer and foreign key functionality
Replies: 3
Views: 1190

One concern I have is returning wxString references rather than wxString instances. The rest of the DatabaseLayer API returns wxString instances, and the lifespan of the wxString may not continue passed the function call. I'm limited on free time, but I'll try to help with the other backends if poss...