Search found 150 matches

by chris
Thu Feb 02, 2006 6:24 pm
Forum: C++ Development
Topic: wxString::Format uint64_t problem
Replies: 23
Views: 5815

Ok, this is obviously an issue in the C runtime library used by MinGW. If I'm not mistaken, MinGW uses the Visual C++ 6 crt (msvcrt.dll). cout doesn't use the C routines, which may explain why it works there. I guess this isn't a bug, btw. You just need to find out which format types are supported i...
by chris
Thu Feb 02, 2006 3:47 pm
Forum: C++ Development
Topic: wxString::Format uint64_t problem
Replies: 23
Views: 5815

I should also mention that the output from echo( (uint32_t)2, "hello world" ); varies from call to call, so I guess it's a bad pointer problem here.

Edit: Did you try to do a plain printf("%Lu") on the uint64_t?
by chris
Thu Feb 02, 2006 3:42 pm
Forum: C++ Development
Topic: wxString::Format uint64_t problem
Replies: 23
Views: 5815

Hi aval57, I just tried it myself (wxGTK 2.6.2 ANSI), gcc 4.0.3 20051201. Funnily enough, it's the other way around here: the second call works, the first doesn't. I implemented this with overloaded methods and it works: #include <cstdlib> #include <iostream> #include <wx/string.h> using namespace s...
by chris
Thu Feb 02, 2006 2:42 pm
Forum: C++ Development
Topic: wxString::Format uint64_t problem
Replies: 23
Views: 5815

Hi aval57,

a shot in the dark: Could it be that you provide the wrong modifier? "L" denotes a long double afaik.

HTH, Chris

Edit: On a second thought: %lu should work.
by chris
Thu Feb 02, 2006 2:33 pm
Forum: Compiler / Linking / IDE Related
Topic: LNK 2005 errors.
Replies: 14
Views: 2373

I don't use Visual Studio, so I don't know. But if the compiler/linker complains about unknown symbols unless you directly include the .cpp (which btw. you should never do!) it sounds like it's not linked like it should be.
Please post the compiler/linker output so we can be sure.
by chris
Thu Feb 02, 2006 11:19 am
Forum: Compiler / Linking / IDE Related
Topic: LNK 2005 errors.
Replies: 14
Views: 2373

Sounds like you don't link ListCTRL.o. You did add it to the project's files list, didn't you?
If it still fails, please post the complete compiler output.
by chris
Fri Jan 27, 2006 4:28 pm
Forum: C++ Development
Topic: Wierd Text Disappearing Bug
Replies: 6
Views: 1273

Did you try to refresh the window if there's input in the textctrl? I think it's worth trying. Text in the background image should be a last resort :D
And maybe you should file a bug on the tracker. This really sounds like a bug to me.
by chris
Fri Jan 27, 2006 10:05 am
Forum: C++ Development
Topic: Wierd Text Disappearing Bug
Replies: 6
Views: 1273

Hi Ksmith22, just some quick thoughts: - You are creating a wxPaintDC in you paint handler, aren't you? - Those baloon tips can only be turned off by a registry key AFAIK. - If the text is still visible when the baloon tips pops up but gets inivisble as soon as you start typing (is that the way it h...
by chris
Mon Jan 23, 2006 1:19 pm
Forum: C++ Development
Topic: virtual bool OnInit()?
Replies: 6
Views: 1785

Yes, that's correct.
by chris
Mon Jan 23, 2006 10:46 am
Forum: C++ Development
Topic: virtual bool OnInit()?
Replies: 6
Views: 1785

Hi satchmo, on a further note: Virtual methods that need to be overwritten are called "pure" virtual methods in C++, and are declared by virtual void foo()=0; (note the =0 ). Classes with pure virtual methods are abstract and can not be instantiated. Any class that derives from a class with pure vir...
by chris
Mon Jan 16, 2006 12:05 am
Forum: Platform Related Issues
Topic: where is wx-config on Ubuntu
Replies: 7
Views: 2585

Try to install libwxgtk2.6-dev. That should get you going.
by chris
Sun Jan 08, 2006 1:01 pm
Forum: C++ Development
Topic: wxConvUTF8.cWX2MB
Replies: 1
Views: 887

Hi ioio, there are two possible scenarios: You call cWX2MB() in an ansi build. You'll then get back the parameter unaltered. Or you call cWX2MB() in an Unicode build. You'll then get back a wxCharBuffer, which is an object that can be cast to (const char*). That buffer will be defined as long as the...
by chris
Sat Dec 31, 2005 12:41 pm
Forum: General Development
Topic: wxTreeCtrl and multithreading - need help ASAP
Replies: 4
Views: 1167

Hi rickg22, That's generally a tricky situation. Did you have a look at wxMutexGuiEnter() and wxMutexGuiLeave() ? From what I gather, people experienced varied results with them. Last time I used them was somewhere in the early 2.5 branch and it didn't quite work like wanted, but it still might help...
by chris
Tue Dec 27, 2005 12:09 pm
Forum: Platform Related Issues
Topic: Windows installation question
Replies: 2
Views: 668

Hi ssinai, You could also install the free Microsoft Visual C++ Toolkit 2003 (command line compiler only) and use nmake. Wiki instructions here . Or coming from a Unix background, you could also use MinGW (the Windows port of gcc) and MSYS, which uses the well-known ./configure && make style. The Ma...
by chris
Tue Dec 27, 2005 12:01 pm
Forum: wxDev-C++
Topic: Problem with compiling
Replies: 4
Views: 1162

Hi mikecoon, I encountered that some time ago, too. I never really found out why, but the project files somehow got messed up. What helped for me was creating a new project and adding all files and options from the corrupted project to that new one. Perhaps a dev from wxDevCpp could chime in and pos...