Search found 41 matches

by ddaeschl
Thu Mar 20, 2008 6:59 pm
Forum: Announcements and Discoveries
Topic: wxMaskedEdit (C++) Source
Replies: 2
Views: 2046

Sorry. That site was lost a while ago due to equipment failure. You can download the class source here http://oneangryjerk.com/files/maskedit.zip The code is rough, but it works. I have a cleaner version, but it depends on some of our internal code and I can't release it here. The classes interface ...
by ddaeschl
Thu Mar 16, 2006 10:02 pm
Forum: C++ Development
Topic: Exceptions with wxWidgets & mingw
Replies: 36
Views: 4868

I have no general problems with exceptions and MINGW 3.4.2. I can throw any type and catch it without a crash. The only problem I experience is throwing an exception across a DLL boundry, catching it, and then later unloading the DLL. I solved this problem by not unloading my addin DLLs explicitly u...
by ddaeschl
Fri Feb 03, 2006 7:38 pm
Forum: C++ Development
Topic: Question about shared variables in a multithreaded app
Replies: 3
Views: 1146

The place where Davros is not correct is in the case of multiproc/multicore systems, where one processor or core could be writing, while the other is reading and so on. I'm also not sure the modification of a stack/heap var regardless of if it is the same size as a native "word" would be atomic on a...
by ddaeschl
Tue Jan 10, 2006 8:07 pm
Forum: C++ Development
Topic: wxRadioBox in a wxScrolledWindow
Replies: 4
Views: 1114

Thank you both, for now im just painting it when the user selects the item that chooses the radios. It's not perfect, but it works.
by ddaeschl
Mon Jan 09, 2006 8:50 pm
Forum: C++ Development
Topic: wxRadioBox in a wxScrolledWindow
Replies: 4
Views: 1114

Well, that fixes it initially not displaying, but if you make sure the window is not big enough to hold the entire box, scroll down, and then maximize the window, the radiobuttons again are not displayed. You can even restore the window and notice that they still don't paint! Something is definately...
by ddaeschl
Mon Jan 09, 2006 7:30 pm
Forum: C++ Development
Topic: wxRadioBox in a wxScrolledWindow
Replies: 4
Views: 1114

wxRadioBox in a wxScrolledWindow

For some reason when I place a wxRadioBox inside a wxScrolledWindow, the radio buttons don't draw until I resize the window. They don't even redraw if I scroll up and down. Screen Shot: http://dev.rsaisp.com/images/hosted/radbox_scrolwin_prob.gif Example Code: #include <wx/wx.h> class Test : public ...
by ddaeschl
Thu Sep 15, 2005 12:35 pm
Forum: C++ Development
Topic: is there a wxDLL class?
Replies: 7
Views: 2163

Maybe he means something like wxDynamicLibrary?
by ddaeschl
Wed Sep 07, 2005 7:46 pm
Forum: C++ Development
Topic: SQL as slim and easy possible
Replies: 12
Views: 2461

I would agree with RogerIrwin that alot of middleware is bloatware that doesn't increse productivity or flexability at all. However, we develop middleware here that deals with things like client disconnected operation (restaurant cash registers for example), database failures, instant messaging, rem...
by ddaeschl
Wed Sep 07, 2005 7:39 pm
Forum: C++ Development
Topic: InterlockedIncrement?
Replies: 10
Views: 1771

The only thing I would have against the critical section solution is that it could be a lot more expensive than an atomic increment.

This may not seem like a big deal, but if he is using the operation for something like reference counting of many objects, the extra time can add up very quickly.
by ddaeschl
Wed Sep 07, 2005 12:30 pm
Forum: C++ Development
Topic: InterlockedIncrement?
Replies: 10
Views: 1771

Hello, SnakeChomp, all that he probably wanted to know was is there a wxWidgets function for atomic increment and decrement, which is not windows specific by any means, he just wasn't asking the question in a non windows specific manner. Atomic operations are defined at the processor level, so the f...
by ddaeschl
Wed Sep 07, 2005 12:10 pm
Forum: C++ Development
Topic: SQL as slim and easy possible
Replies: 12
Views: 2461

Hi Jorg, In the book Patterns of Enterprise Application Architecture the authors define patterns that help you to separate the data access code from the class logic. One of the patterns that the authors develop is the Table data gateway ( http://www.martinfowler.com/eaaCatalog/tableDataGateway.html ...
by ddaeschl
Wed Sep 07, 2005 12:02 pm
Forum: C++ Development
Topic: Unloading a DLL closes my whole app
Replies: 2
Views: 739

Good Morning,

When you unload the DLL is your program crashing or exiting normally? If it is crashing I would send it through a debugger to see if you can trace into the function or functions that are causing the problem.
by ddaeschl
Wed Sep 07, 2005 11:59 am
Forum: C++ Development
Topic: Code in main app that DLL wants to reference... possible?
Replies: 10
Views: 1675

Actually, this scenario is common for plugin architectures. Usually the main app hosts services for the plugin modules. This is normally done in C++ through the use of interfaces. For example.. IPluginServices.h: //Defines an interface that the main program will have to create //an implementation fo...
by ddaeschl
Wed Aug 31, 2005 5:56 pm
Forum: C++ Development
Topic: DECLARE_DYNAMIC_CLASS ~wxClassInfo and Shared Object
Replies: 0
Views: 560

DECLARE_DYNAMIC_CLASS ~wxClassInfo and Shared Object

I have an application that only uses the wxbase, and wxodbc libraries, but loads addon modules. These addon modules can be used with the application in question, or another application that supports a GUI, so the addins may load other WX libraries. So I call wxInitialize on startup and wxUninitializ...
by ddaeschl
Wed Aug 31, 2005 12:38 pm
Forum: C++ Development
Topic: wxBitmap::CreateFromImage problem detected with codeguard
Replies: 4
Views: 947

Well, it's not really a bug, but it should be done your way Actually, it is a bug.. According the the C++ standard the result of deleting an array object using delete and not delete[] is undefined. Undefined in standardeese means that it could do anything, including steal your pets food dish. :shoc...