Search found 150 matches

by chris
Thu Apr 13, 2006 8:13 am
Forum: C++ Development
Topic: wxDateTime::Now() off by 10 hours
Replies: 13
Views: 2938

Hi protocol,

Yes, it is.
I should have mentioned this happens under wxMSW 2.6.3 (and 2.6.2), but works fine under wxGTK 2.6.3.
The strange thing is that it's off just for the very first call and then works as expected. With a badly set up locale I'd assume a permanent shift.

Chris
by chris
Tue Apr 11, 2006 4:18 pm
Forum: C++ Development
Topic: wxDateTime::Now() off by 10 hours
Replies: 13
Views: 2938

wxDateTime::Now() off by 10 hours

Hi all, I'm experiencing a strange problem with wxDateTime::Now(). I'm logging some stuff to a wxTextCtrl via textctrl->AppendText(wxDateTime::Now().Format(_T("%x %X: ")+somestring); Now to the problem: The first call to wxDateTime::Now().Format(...) is off by -10 hours; all subsequent calls display...
by chris
Wed Mar 29, 2006 11:24 pm
Forum: C++ Development
Topic: window bring to front, raise, show, TaskBarIcon, tooltips
Replies: 13
Views: 9253

I'm using this:

Code: Select all

win->SetFocus();
win->Raise();
win->Show(true);
#ifdef __WXMSW__
win->Maximize(false);
#endif
This is used to bring back an iconized wxWindow on the front, which is what you were looking for, I think.
It works as expected on wxMSW and wxGTK; didn't test it on Mac.

HTH, Chris
by chris
Sat Mar 11, 2006 11:18 am
Forum: Compiler / Linking / IDE Related
Topic: Dang Linker errors
Replies: 3
Views: 882

The rest of the errors may very well be subsequent errors because of the missing vtable (and hence no way to call virtuals).
by chris
Fri Mar 10, 2006 11:02 am
Forum: Compiler / Linking / IDE Related
Topic: Dang Linker errors
Replies: 3
Views: 882

Hi, This is just a shot in the dark: Those dreaded "undefined reference to vtable" linker errors happen if you have a method declaration without definition in the class. Check for something like foo.h: class foo{ void bar(); }; and foo.cpp is missing the "void foo:bar(){...};". In your case I'd have...
by chris
Mon Mar 06, 2006 9:52 pm
Forum: C++ Development
Topic: Unicode xgettext problems with _() over several code lines
Replies: 17
Views: 4250

Hi,

did you try

Code: Select all

_("text1"
"text2");
?

Chris
by chris
Fri Mar 03, 2006 10:45 am
Forum: Platform Related Issues
Topic: wxMSW - My documents - folder
Replies: 8
Views: 1904

Hi,

use the generic type wxChar for that. It defaults to char in ANSI and wchar_t in Unicode builds.

I.e.

Code: Select all

wxChar mydocuments[MAX_PATH];
should do the trick.

Chris
by chris
Wed Mar 01, 2006 9:19 am
Forum: Open Discussion
Topic: Seeking for short-time testers
Replies: 5
Views: 1268

I'm running XP, too, so if you need another tester, just PM me.

Chris
by chris
Sat Feb 18, 2006 12:44 pm
Forum: C++ Development
Topic: wxString::Format uint64_t problem
Replies: 23
Views: 5815

Hi, I identified the problem and filed a bug, but still got no feedback on it, so I guess that it won't be fixed with 2.6.3. The problem is that certain preprocessor defines are not set when compiling via the makefiles (like the devpak creators do). Running configure sets those and therefore a "conf...
by chris
Wed Feb 15, 2006 10:24 pm
Forum: C++ Development
Topic: wxWidgets examples
Replies: 4
Views: 857

ivan, I sent you a private message.

Chris
by chris
Wed Feb 15, 2006 4:55 pm
Forum: C++ Development
Topic: wxWidgets examples
Replies: 4
Views: 857

Hi ivan,

simply download the source code of wx for your platform (Windows in this case) and extract it. The examples are found in the subfolder "samples".

Download: http://www.wxwidgets.org/downld2.htm

HTH, Chris
by chris
Wed Feb 15, 2006 10:47 am
Forum: C++ Development
Topic: wxFileConfig and Flush()
Replies: 2
Views: 817

Hi David, At first, thanks for your suggestions! Now to the embarrassing part: I forgot to update the source code from SVN on the Linux machine; the older version missed the calls to Flush(), but I blindly assumed I'd be working on the Head. :oops: I'm going to sit in the corner now. Thanks again, C...
by chris
Mon Feb 13, 2006 3:14 pm
Forum: C++ Development
Topic: wxFileConfig and Flush()
Replies: 2
Views: 817

wxFileConfig and Flush()

Hi all, I'm having some troubles with wxFileConfig not writing to the user data file when calling Flush(). I'm doing a long m_foo=42; [...] wxConfigBase::Get()->Write(_T("foo"),m_foo); wxConfigBase::Get()->Flush(); but the value of "foo" isn't written until I call the dtor on the config object via d...
by chris
Thu Feb 09, 2006 7:09 pm
Forum: wxDev-C++
Topic: Supporting alternative libraries debug/unicode etc
Replies: 10
Views: 1730

That's great if there is also something like this available in the branch.
Like I said, I'd really appreciate such a switch.

Are there any other peoples who also want this? :D

Chris
by chris
Thu Feb 09, 2006 7:05 pm
Forum: C++ Development
Topic: work with a queue
Replies: 3
Views: 995

I have to admit that I didn't try it, but couldn't you just derive your receiving thread from wxEvtHandler, then push it via wxWindow::PushEventHandler() and simply use the already existing message queue (via PostEvent())?