Search found 149 matches

by jmason1182
Fri Apr 24, 2009 2:53 pm
Forum: The Code Dump
Topic: A Beginner's Helper: Build wxWidgets on Win32 w/ MinGW
Replies: 3
Views: 2653

A Beginner's Helper: Build wxWidgets on Win32 w/ MinGW

New windows users/developers aren't dumb. It's just that some people don't understand how to build a library when they start out, and let's face it. Lots of people have MS Windows, use Windows, and so they try to learn on Windows. The point of this script is to help people like that. Hey, back in t...
by jmason1182
Fri Apr 24, 2009 2:46 pm
Forum: Compiler / Linking / IDE Related
Topic: Installing in Code::Blocks with MinGW and no MSYS or CYGWIN
Replies: 36
Views: 8422

For anybody that wants it, I made a little batch file that simplifies this process. That way if I need to "redo" the compile I don't have to worry about opening a command prompt, remember where and what config options I needed, etc. etc. The third line of the batch file needs to be adjusted so that ...
by jmason1182
Thu Apr 23, 2009 10:06 pm
Forum: C++ Development
Topic: Logging to multiple LogTargets?
Replies: 9
Views: 2298

I hate when I don't finish publishing something so if I myself go through and search for it later on I can't find it. SO, I'm posting this for myself (but other people might benefit from it too.) It is just a complete example of what I talked about earlier. Again, my wxCLogFrame class is just a wxFr...
by jmason1182
Tue Apr 21, 2009 8:39 pm
Forum: wxCode
Topic: Ok need help with sqlite databaselayer
Replies: 3
Views: 1238

Well what do you know.... I updated my databaselayer to the latest 1.8 release from sourceforge. THEN I noticed plenty more wxLogDebug statements throughout... particular concerning the places I was complaining about here. I removed the problem situation discussed in my first post of this topic to m...
by jmason1182
Tue Apr 21, 2009 7:46 pm
Forum: wxCode
Topic: Ok need help with sqlite databaselayer
Replies: 3
Views: 1238

Since I'm the only one gonna look at my posts... I'll guess I will put up any issues that I find. First off, the header that was being created (VLP5) was not being written to the report file. Turns out UNICODE causes more problems than even I think it is worth. So I started by altering how the repor...
by jmason1182
Tue Apr 21, 2009 2:35 pm
Forum: wxCode
Topic: Ok need help with sqlite databaselayer
Replies: 3
Views: 1238

I just switched over and tried it using MySQL instead of sqlite. It's definitely a databaselayer issue. Here's the snippet where the bug hits. "r" is a resultset. db is the databaselayer object. This is after successfully pulling information from the database and using the resultset to pull out all ...
by jmason1182
Mon Apr 20, 2009 10:09 pm
Forum: wxCode
Topic: Ok need help with sqlite databaselayer
Replies: 3
Views: 1238

Ok need help with sqlite databaselayer

I haven't figured out if this is just a sqlite3 thing or if it affects all databaselayer things.. or if I just screwed something up. When it goes to close the sqlite database connection, the CloseResultSets freezes. I can't get a debugger to see the cpp file and trace it through the calls to the one...
by jmason1182
Mon Apr 20, 2009 7:22 pm
Forum: wxCode
Topic: Database layer included into wxReportWriter demo
Replies: 3
Views: 1544

Not to self. The databaselayer libraries... reqgardless of backend... doesn't build a stand-alone library. You still have to link with the backend library (sqlite3.lib for instance)

Linked with the sqlite's library itself and viola.
by jmason1182
Mon Apr 20, 2009 6:51 pm
Forum: wxCode
Topic: Database layer included into wxReportWriter demo
Replies: 3
Views: 1544

OK, so I took a look at my databaselayer_sqlite project and noticed I had to debug library. After rebuilding the unicode-debug library for databaselayer_sqlite, the "multiple definition" error was resolved. BUT, why are all the sqlite3 functions undefined? It says undefined reference to `sqlite3_ope...
by jmason1182
Mon Apr 20, 2009 4:40 pm
Forum: wxCode
Topic: Database layer included into wxReportWriter demo
Replies: 3
Views: 1544

The full error is as follows.... so does that mean that the sqlite library also defines wxLogDebug? and if so, why!? C:\dev\wx\wxWidgets-2.8.10\lib\gcc_lib/libwxbase28ud.a(baselib_log.o): In function `Z10wxLogDebugPKwz': C:/dev/wx/wxWidgets-2.8.10/build/msw/../../src/common/log.cpp:237: multiple def...
by jmason1182
Mon Apr 20, 2009 4:23 pm
Forum: wxCode
Topic: Database layer included into wxReportWriter demo
Replies: 3
Views: 1544

Database layer included into wxReportWriter demo

This is purely a databaselayer issue.... I got the wxReportWriter compiling and running fine. But then I took a look at how it was pulling data in from the database. And I noticed I hadn't specified "USE_SQLITE" to even look at the demo anyway! So I declared USE_SQLITE and the following errors came ...
by jmason1182
Mon Apr 20, 2009 2:54 pm
Forum: wxCode
Topic: Trouble with wxReportWriter
Replies: 4
Views: 2155

So I thought to myself... linker issue... maybe I'm not linking with the database layer library?

Sure enough, I corrected the databaselayer library path and added the library (databaselayer_odbc) to the linker stage and it worked.

Thanks for your help (myself?).
by jmason1182
Mon Apr 20, 2009 2:47 pm
Forum: wxCode
Topic: Trouble with wxReportWriter
Replies: 4
Views: 2155

In demo.cpp, right after including wxReportFiller.h I had to include #include "wx/msw/winundef.h". Duh! I added windows.h to wxReportWriter which is included by wxReportFiller.... so that means I have to undefine the windows.h stuff that will mess with wxWidgets. Viola. Now I have one more linker er...
by jmason1182
Mon Apr 20, 2009 2:35 pm
Forum: wxCode
Topic: Trouble with wxReportWriter
Replies: 4
Views: 2155

OK. So I go into wxReportWriter.h and change the following (in this order... very top of file.) ... #endif //Added this line #include <windows.h> #include <wx/filename.h> #include <wx/ffile.h> #include <wx/datetime.h> //And this line #include <wx/gdicmn.h> #ifdef __WXMSW__ typedef long SDWORD; typed...
by jmason1182
Mon Apr 20, 2009 2:10 pm
Forum: wxCode
Topic: Trouble with wxReportWriter
Replies: 4
Views: 2155

And wait a minute... doesn't wx.h contain all the includes etc. I need for ULONG etc? (including windows.h?)