Search found 64 matches

by chenbin.sh
Mon Nov 14, 2011 8:33 am
Forum: General Development
Topic: share my emac config as a wxwidgets c++ developer
Replies: 0
Views: 963

share my emac config as a wxwidgets c++ developer

* general. I care only productivity. No fun to play with new toys. * Install 1. git clone https://github.com/redguardtoo/emacs.d ~/.emacs.d 2. set up tags for wxWidgets see http://wiki.wxwidgets.org/Emacs cp custom.el ~/.emacs.d ;;custom.el (setq tags-table-list (list (expand-file-name "~/mytags/wx/...
by chenbin.sh
Mon Nov 14, 2011 7:56 am
Forum: Open Discussion
Topic: which help viewer to use (with emacs)?
Replies: 2
Views: 3514

which help viewer to use (with emacs)?

I need a document viewer which support CLI so I can select a keyword in Emacs and open it in that document viewer.

It should be light weight (because I am using Arch Linux on eeepc701 now).

Which document format (chm?) and which viewer should I use?
by chenbin.sh
Fri Oct 21, 2011 12:07 am
Forum: Component Writing
Topic: a book shelf control like ibook?
Replies: 4
Views: 6168

Re: a book shelf control like ibook?

Thanks
by chenbin.sh
Wed Oct 19, 2011 1:22 pm
Forum: Component Writing
Topic: a book shelf control like ibook?
Replies: 4
Views: 6168

a book shelf control like ibook?

I want to develop a control like ibook, a simple book shelf, with some texture on it. some books (just normal images which clickable and simple on hover effect).

What basic controls I should use to do this stuff?

If there are some existing controls in wxwidgets, it would be great.

Any ideas?
by chenbin.sh
Sun Jan 31, 2010 10:43 pm
Forum: C++ Development
Topic: how to share memory between two process
Replies: 2
Views: 917

thanks, you are really knowledgeable in C++
by chenbin.sh
Fri Jan 22, 2010 4:41 am
Forum: C++ Development
Topic: how to share memory between two process
Replies: 2
Views: 917

how to share memory between two process

Process A call process B which create shared memory about 1~2M bytes and copies some data into the memory. Then A read the data from the memory.

How to do it in wxWidgets?
by chenbin.sh
Thu Jan 21, 2010 4:45 am
Forum: C++ Development
Topic: Can I use this way to detect whether the pointer is deleted?
Replies: 4
Views: 1128

Hmmm no this is not the way to do it. You are talking about checking if "a" is deleted or not this way? _dummyFlag is still a member of this class, and when the pointer is deleted, it points to an abitrary piece of memory. VERY bad practice! What you should do instead is make a singleton container ...
by chenbin.sh
Thu Jan 21, 2010 4:42 am
Forum: C++ Development
Topic: how to concatenate string in C way?
Replies: 2
Views: 725

how to concatenate string in C way?

printf("hello""world");
is OK in C.

but wxString(_("hello""world")); will fail.

How can I do this in C way?
by chenbin.sh
Wed Jan 20, 2010 1:09 am
Forum: C++ Development
Topic: Can I change the color of menubar ?
Replies: 2
Views: 660

met same problem.

I turned to the wxFlatMenu at last.
by chenbin.sh
Wed Jan 20, 2010 1:01 am
Forum: Open Discussion
Topic: Basic Design Question for Large Projects
Replies: 4
Views: 2249

Forget the design. All you need to do now is make your program simple and useful. Try to use your application in real environment and improve it.

For this design, I suggest you using timer instead of threads. Timer is easier to debug. I can not see the necessity to use thread in a chat bot.
by chenbin.sh
Sat Jan 16, 2010 9:27 am
Forum: C++ Development
Topic: How does an excutable know its own path when running?
Replies: 1
Views: 667

How does an excutable know its own path when running?

Any wxWidgts API or linux/OSX API (I know how to do it under win32)?

What I want to do is that executable A starts it will detect path of the other executable B because A&B are place in the same directory.
by chenbin.sh
Fri Jan 15, 2010 4:28 am
Forum: C++ Development
Topic: Why wxWidgets does not have a namespace ?
Replies: 12
Views: 2419

Because wxWidgets is Oooold. And for the developers of wx backwardscompatibility is more important than some fancy new language features. BTW: There is a wxEvtHandler::Connect. Another BTW: Why are you using sigc::mem_fun, when there is TR1::bind(), wich will also be in the next C++ standard? Yeah,...
by chenbin.sh
Mon Oct 05, 2009 11:04 pm
Forum: C++ Development
Topic: wxDialog ctor: C++ member initialization vs. Create()
Replies: 5
Views: 976

Re: wxDialog ctor: C++ member initialization vs. Create()

Just downloaded DialogBlocks for evaluation and I noticed that that instead of using C++ member initialization list to pass parameters to wxDialog base class, it calls wxDialog::Create() in the constructor body instead. That is, instead of what I usually do: CUserDialog::CUserDialog( wxWindow* pare...
by chenbin.sh
Tue Sep 15, 2009 3:02 am
Forum: C++ Development
Topic: How to convert wxArrayString into wxString efficiently
Replies: 10
Views: 2238

I don't mind he saying my code does not perform well. What I find strange is that if he was able to analyze it and come to this conclusion, he should also be able to read the docs, see that there's no Concat() that does what he wants, and code his own function. Oh well, sometime I'm lazy too and pr...