Search found 211 matches

by Frank
Wed Feb 16, 2011 3:10 am
Forum: General Development
Topic: How does Boost.Interprocess compare with wx IPC?
Replies: 2
Views: 2092

I cant' say anything about wx's IPC. But for boost, it's crap. At least on windows. The Mutexes don't use WinAPI, instead they create it's own File-Based implementation (WinAPI = Kernel-Objects). If your Program crashes the files won't be deleted. Next time your Programm is launched the mutex can't ...
by Frank
Fri Aug 06, 2010 11:31 pm
Forum: C++ Development
Topic: Accents in the console on Windows using unicode build
Replies: 4
Views: 619

Set the locale and will magically work. I think wx uses it's own wxLocale or something, but std::setlocale() should work as well.
by Frank
Thu Jun 10, 2010 10:08 am
Forum: Open Discussion
Topic: why wxWidgets have no "official" support for datab
Replies: 9
Views: 7617

JDBC is Java's couterpart of ODBC in C. It's a generic, database independet API. But there are C++ APIs too (don't know any, it's been some years since I looked. I rolled my own for DB2, because I wanted to use every trick to get the best performance out of DB2. No generic API for me, thanks). I rem...
by Frank
Thu Jun 10, 2010 12:42 am
Forum: Open Discussion
Topic: why wxWidgets have no "official" support for datab
Replies: 9
Views: 7617

Also, there are toolkits that specialize in DB-Access. So why would you roll your own, when it could never be of the same quality as the specialized?
by Frank
Tue Jan 12, 2010 7:02 pm
Forum: C++ Development
Topic: Why wxWidgets does not have a namespace ?
Replies: 12
Views: 1648

I don't think it's such big of a task. Just wraping every wxClass into a namespace can be done in a couple of hours. I think the real issue here is backward compatibility. Namespaces are just thre begin. Getting rid of the macros is a much bigger task. And it breaks hundreds (if not thousands) of Pr...
by Frank
Tue Jan 12, 2010 6:46 pm
Forum: C++ Development
Topic: Passing Variable Size Data to Threads
Replies: 4
Views: 779

Have you the option to use boost? Or the soon-to-be-standard tr1? With function and bind your job is really quite easy to implement. Just pass function<> objekts wich contains the parameters the function needs. void function1 (const param& p1) { ... does domething with p1} void function2 (const para...
by Frank
Tue Jan 12, 2010 12:07 pm
Forum: C++ Development
Topic: Why wxWidgets does not have a namespace ?
Replies: 12
Views: 1648

Because wxWidgets is Oooold. And for the developers of wx backwardscompatibility is more important than some fancy new language features. BTW: There is a wxEvtHandler::Connect. Another BTW: Why are you using sigc::mem_fun, when there is TR1::bind(), wich will also be in the next C++ standard? Yeah, ...
by Frank
Mon Dec 28, 2009 8:54 pm
Forum: Compiler / Linking / IDE Related
Topic: Using wxWidgets as DLL vs Monolithis library
Replies: 3
Views: 1170

Since VS 2005 Microsoft did some crappy stuff with it's CRT. You need the manifests vor the DLLs. Unless the manifest from your binary matches the manifest from the dll's, they are not loaded. Also, with VS2008 and Fixpack 1, the Compiler itself writes the wrong manifest. Points to the Dlls without ...
by Frank
Mon Dec 21, 2009 11:52 pm
Forum: C++ Development
Topic: Issues with initializing a DLL from an EXE
Replies: 12
Views: 3098

Ever wondered why the Mainthread is called GUI-Thread ;)

Because it's the thread in wich the GUI happens.
by Frank
Mon Dec 21, 2009 5:24 pm
Forum: C++ Development
Topic: Issues with initializing a DLL from an EXE
Replies: 12
Views: 3098

Without looking at your code: Never call code from DLLMain, when you're not sure what it does. There are things that are dangerous in DLLMain (like starting threads, using mutexes).

If you have a choice, and as I understand you have, don't use DLLMain for Initialising stuff.
by Frank
Thu Dec 17, 2009 12:15 am
Forum: C++ Development
Topic: Order of events?
Replies: 3
Views: 770

As far as I understand it, wx just translates the events from the system (like WM_COMMAND, WM_FOCUS on Windows) into wxEvents (wxCommandEvent, wxFocusEvent).

This means, the order of the events is platform dependent.
by Frank
Sun Dec 13, 2009 8:31 am
Forum: Platform Related Issues
Topic: Strange redraw problem under Windows 7
Replies: 7
Views: 6669

Hmmm, I'm using Windows7 for some weeks now and never had drawing any problems. Not with my own (wxWidgets-)apps nor any other app. There is of course a difference in Aeoro. It has realtime thumbs as a mouseover for the tasklist (okay, that's not really new, it's a feature since Vista). These thumbn...
by Frank
Fri Dec 11, 2009 1:06 pm
Forum: Open Discussion
Topic: why doesnt Wxwidgets work with data types like Ms .net ?
Replies: 9
Views: 2741

Yes, that's the one.

Don't forget to recompile your wxWidgets after the change.
by Frank
Fri Dec 11, 2009 1:00 pm
Forum: C++ Development
Topic: Program doesn't always fully close
Replies: 4
Views: 603

Have you checked *where* your program termination hangs?

I have the same problem. The debugger shows, it hangs in the exit from the CRT (in a WinAPI call).

I never found what's causing this, so I call TerminateProcess(). Ugly, but works...
by Frank
Thu Dec 10, 2009 5:40 am
Forum: Open Discussion
Topic: why doesnt Wxwidgets work with data types like Ms .net ?
Replies: 9
Views: 2741

Where to find your setup.h depends on your Plattform. My is here: include/wx/msw/setup.h It's all documented direcly in that file. The lines you have to change are wxUSE_STD_STRING and (don't know if this is even neccesary for std::string to work, I have my set to 1 because it's 2009 and not 1995) w...