Search found 173 matches

by Belgabor
Wed Jun 04, 2008 12:11 pm
Forum: C++ Development
Topic: vector<wxString> problem ?
Replies: 8
Views: 5148

No, push_back copies the argument, so his code is ok. Personally I would think it's a bug in MS's std lib and try STLport.
by Belgabor
Tue Apr 29, 2008 2:03 am
Forum: C++ Development
Topic: newbie: when wxFrame destructor is called?
Replies: 6
Views: 9844

~wxApp() is virtual, so his destructor is as well. Nevertheless it's good coding practice to write it out, otherwise you might forget it when really necessary.
by Belgabor
Fri Apr 25, 2008 2:58 pm
Forum: C++ Development
Topic: widget data mapping
Replies: 11
Views: 14011

That's not true. wxDataViewCtrl is built around this paradigm. I also believe wxGrid supports custom data backends.
by Belgabor
Wed Apr 23, 2008 2:17 am
Forum: Compiler / Linking / IDE Related
Topic: Fun with wxStyledTextCtrl and classes
Replies: 14
Views: 17058

"-L" adds a library search directory, it's "-l" you want (or use -L for the directory and -l for the library file).
by Belgabor
Tue Apr 22, 2008 12:06 pm
Forum: C++ Development
Topic: external libaries + release 3.0
Replies: 2
Views: 2913

I guess these standards need revision, quite a couple of templates are now in trunk :)
by Belgabor
Thu Apr 17, 2008 9:52 pm
Forum: C++ Development
Topic: wxStyledTextControl vs. wxScintilla for Syntax Highlighting
Replies: 19
Views: 16854

Running configure gives me a makefile in contrib, maybe you should check your configure switches.
I would also recommend you to use wxStyledTextControl as it's been assimilated into wxWidgets itself in 2.9.
by Belgabor
Mon Apr 14, 2008 6:48 pm
Forum: Open Discussion
Topic: XML strangeness
Replies: 6
Views: 6434

msdobrescu wrote:Since there is no difference between having an empty text node and not having it at all...
I don't understand, why is that a problem? Just implement the class and corresponding xml format in a way where that difference doesn't matter.
by Belgabor
Mon Apr 14, 2008 5:55 pm
Forum: C++ Development
Topic: Signal-slot library?
Replies: 5
Views: 7711

I use sigc++. When I decided that a signal slot mechanism was ideal for one of my apps, I looked at all respective libraries I could find, namely sigslot, sigc++ and boost::signal. I don't exactly remember the full reasons why I chose sigc++ over the others, but what I faintly remember is that sigsl...
by Belgabor
Sun Apr 13, 2008 1:24 pm
Forum: Open Discussion
Topic: XML strangeness
Replies: 6
Views: 6434

I also fail to see how any of this prevents you from writing a working xml-based conf implementation...
by Belgabor
Fri Apr 11, 2008 3:44 pm
Forum: C++ Development
Topic: How would you use wxWidget to Project an image to porjector?
Replies: 8
Views: 8520

That should be a matter of the OS and GFX-card driver (or even the hardware on the card).
by Belgabor
Wed Apr 09, 2008 3:53 am
Forum: C++ Development
Topic: What is wrong in this code?
Replies: 13
Views: 13150

However, the mistery is still unsolved since I don't see why not specified default parameters in connect() makes the code crash and if they are specified the code works. There is no mystery, the default parameter for the eventSink parameter is NULL, not this. If you name NULL explicitly, it will cr...
by Belgabor
Wed Apr 02, 2008 11:29 pm
Forum: C++ Development
Topic: wxXmlDocument.Save() parameter truncation
Replies: 11
Views: 6188

ArKay wrote:I think that in UTF-16 EVERY character needs to be written as 16bit (I might be wrong), contrary to UTF-8 where only non-ASCII characters are escaped.
That's wrong. In UTF16 each character is minimally 16 bits long, but there are some that need more.
by Belgabor
Sat Mar 29, 2008 4:42 pm
Forum: C++ Development
Topic: using std::map with wxTreeItemID part II
Replies: 1
Views: 5924

If I understand the MS explanation of this error correctly, you need to declare the operator const. ie:

Code: Select all

operator() (const A& a, const B& b) const {
...
} 
by Belgabor
Fri Mar 28, 2008 2:43 am
Forum: C++ Development
Topic: How do you create a resource file?
Replies: 20
Views: 22721

No, rc (Windows resource) files don't understand the xpm format. You need to convert it to icon (ico) format.
by Belgabor
Fri Mar 28, 2008 1:59 am
Forum: The Code Dump
Topic: Cross platform embedding of resources
Replies: 11
Views: 10095

It is as possible on linux as on windows to create a self-sufficient "exe". It's just usually not done. The reason is (probably) that linux traditionally runs on a lot of differet platforms, while Windows is pretty much x86 only.