Search found 32 matches

by Debster
Fri Aug 13, 2010 10:02 pm
Forum: C++ Development
Topic: What is alternate of ::WaitForSignalObject API of MFC
Replies: 8
Views: 2261

by Debster
Fri Aug 13, 2010 9:52 pm
Forum: C++ Development
Topic: What is alternate of ::WaitForSignalObject API of MFC
Replies: 8
Views: 2261

Hi, "WaitForSingleObject" is a win function and has nothing todo with mfc. It's used for syncronising threads. Let's suppose you have a thread transfering some (Giga)bytes over an tcp/ip connection and another thread is waiting for this data. So this thread can use WaitFoSingleObject todo ...
by Debster
Fri Jul 02, 2010 9:30 pm
Forum: C++ Development
Topic: WxGrid question.
Replies: 5
Views: 1829

I like this feature too.Buttons for insert/delete a row are nice too.Maybe you can extend the row label window?
by Debster
Mon May 24, 2010 7:39 am
Forum: C++ Development
Topic: Using Threads (pthreads) Within a Class
Replies: 14
Views: 4407

i use "::wxPostEvent" in the other threads, posting events to the main window which than handles the gui stuff.
by Debster
Mon May 24, 2010 7:31 am
Forum: C++ Development
Topic: Problem using wxTextCtrl
Replies: 18
Views: 3853

try changing the constructor in "wxDialog(pParent, -1, wxT("Test"))" and i'm curious what is "string", why not using the wxString?
by Debster
Mon May 24, 2010 7:23 am
Forum: C++ Development
Topic: How to intercept close event
Replies: 3
Views: 2022

try handling the "wxCloseEvent" event for the main window. In your own handling method simply show the dialog and when the user clicks ok, call the destroy method. Otherwise do nothing and the main window remains working.
by Debster
Sun May 23, 2010 11:12 am
Forum: C++ Development
Topic: Animation
Replies: 6
Views: 2489

How about a wxTimer? Start it with the proper delay between the images. Redraw bitmap and restart the timer.
by Debster
Sun May 16, 2010 12:52 pm
Forum: C++ Development
Topic: Making thread run after program exits
Replies: 4
Views: 2745

A thread can't run after the program exists. A thread runs in the context of it's process in your case the application. End the process and all threads are terminated. It's a windows thing, did you mentioned your os? Anyway under windows the only solution for you is to start a process in your app to...
by Debster
Wed Dec 09, 2009 8:10 pm
Forum: C++ Development
Topic: How to do this in C++
Replies: 16
Views: 4621

Hi,

Pointer have some advantages, in other languages you are using references. These are only some "special" pointers which can't be null. But sometimes a null pointer is very handy.

regards,
Debster
by Debster
Thu Dec 03, 2009 8:31 pm
Forum: C++ Development
Topic: Distributing an app dependent upon wxWidgets
Replies: 3
Views: 1273

You need the include's for compiling. So, if you won't install wxwidgets, you must deliver include's (*.h) files and either static libs or dlls from wxwidgets. But building a wxWidget App without any wxWidgets file doesn't make sense. :?
by Debster
Mon Nov 30, 2009 11:08 pm
Forum: C++ Development
Topic: edit control mit suggestion list
Replies: 3
Views: 1100

Problem solved with a wxTextCtrl and a Listbox.
by Debster
Mon Nov 30, 2009 11:02 pm
Forum: C++ Development
Topic: link error (2.8 -> 2.9)
Replies: 4
Views: 2728

Hi,

so the main reason for changing the wx version is the drawing problem in vista? Have you try 2.8.10? Maybe the drawing problem still exists under 2.9.0? Have you tried to fix the drawing issue?
by Debster
Mon Nov 30, 2009 10:55 pm
Forum: C++ Development
Topic: What Is The Right Threading Strategy For This?
Replies: 11
Views: 3281

Hi, I also have a pool of worker threads, for doing some communication stuff. So I'm using this: wxConnectionEvent event(wxConnectionEvent::disconnect); ::wxPostEvent(wxFssApp::getFrame().GetEventHandler(), event); wxConnectionEvent is a user defined event. The Mainframe handles all the gui stuff. H...
by Debster
Mon Nov 30, 2009 10:47 pm
Forum: C++ Development
Topic: Write/Read 64bit standard double
Replies: 4
Views: 1416

Hi,

don't understand your problem, what's with simply:

double d;
file.write(&d, sizeof(double));
by Debster
Sun Oct 11, 2009 8:40 am
Forum: C++ Development
Topic: checksum
Replies: 2
Views: 1457

try this:

http://www.cryptopp.com/

this lib can easily integrated in wx apps and has a lot of usefull things, like encryption, hash functions (the checksum you are looking for) and other nice things like base64 encoding/decoding.