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
Search found 150 matches
- Thu Apr 13, 2006 8:13 am
- Forum: C++ Development
- Topic: wxDateTime::Now() off by 10 hours
- Replies: 13
- Views: 3287
- Tue Apr 11, 2006 4:18 pm
- Forum: C++ Development
- Topic: wxDateTime::Now() off by 10 hours
- Replies: 13
- Views: 3287
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...
- Wed Mar 29, 2006 11:24 pm
- Forum: C++ Development
- Topic: window bring to front, raise, show, TaskBarIcon, tooltips
- Replies: 13
- Views: 9695
I'm using this:
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
Code: Select all
win->SetFocus();
win->Raise();
win->Show(true);
#ifdef __WXMSW__
win->Maximize(false);
#endif
It works as expected on wxMSW and wxGTK; didn't test it on Mac.
HTH, Chris
- Sat Mar 11, 2006 11:18 am
- Forum: Compiler / Linking / IDE Related
- Topic: Dang Linker errors
- Replies: 3
- Views: 986
- Fri Mar 10, 2006 11:02 am
- Forum: Compiler / Linking / IDE Related
- Topic: Dang Linker errors
- Replies: 3
- Views: 986
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...
- Mon Mar 06, 2006 9:52 pm
- Forum: C++ Development
- Topic: Unicode xgettext problems with _() over several code lines
- Replies: 17
- Views: 4688
- Fri Mar 03, 2006 10:45 am
- Forum: Platform Related Issues
- Topic: wxMSW - My documents - folder
- Replies: 8
- Views: 2133
Hi,
use the generic type wxChar for that. It defaults to char in ANSI and wchar_t in Unicode builds.
I.e.
should do the trick.
Chris
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];
Chris
- Wed Mar 01, 2006 9:19 am
- Forum: Open Discussion
- Topic: Seeking for short-time testers
- Replies: 5
- Views: 1383
- Sat Feb 18, 2006 12:44 pm
- Forum: C++ Development
- Topic: wxString::Format uint64_t problem
- Replies: 23
- Views: 6301
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...
- Wed Feb 15, 2006 10:24 pm
- Forum: C++ Development
- Topic: wxWidgets examples
- Replies: 4
- Views: 935
- Wed Feb 15, 2006 4:55 pm
- Forum: C++ Development
- Topic: wxWidgets examples
- Replies: 4
- Views: 935
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
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
- Wed Feb 15, 2006 10:47 am
- Forum: C++ Development
- Topic: wxFileConfig and Flush()
- Replies: 2
- Views: 913
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...
- Mon Feb 13, 2006 3:14 pm
- Forum: C++ Development
- Topic: wxFileConfig and Flush()
- Replies: 2
- Views: 913
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...
- Thu Feb 09, 2006 7:09 pm
- Forum: wxDev-C++
- Topic: Supporting alternative libraries debug/unicode etc
- Replies: 10
- Views: 1954
- Thu Feb 09, 2006 7:05 pm
- Forum: C++ Development
- Topic: work with a queue
- Replies: 3
- Views: 1083