Search found 144 matches

by zhouhao
Sat Sep 27, 2008 2:49 pm
Forum: C++ Development
Topic: Need help for download manager
Replies: 0
Views: 557

Need help for download manager

I'm writing a download manager. I want it to monitor browser when the url is a clicked. If the file extension is registered I'll start my download manager like most download manager doing. Can anybody advise what technolody behind that? Thanks
by zhouhao
Sun Jul 27, 2008 1:01 pm
Forum: C++ Development
Topic: Poedit problem
Replies: 2
Views: 1345

Re: Poedit problem

The problem is "Item 1" and "Item 2" are shown when I use the string array somewhere in my program. The corresponding translation is never shown. What could be the problem? ( Other texts are correctly translated and shown in my application) Since you use static wxString constant...
by zhouhao
Sat Jul 26, 2008 4:56 am
Forum: C++ Development
Topic: Poedit problem
Replies: 2
Views: 1345

Poedit problem

Some texts are not correctly shown although I translated them by poedit. Here is my code: const static wxString ITEM1 = _("Item 1"); const static wxString ITEM2 = _("Item 2"); wxArrayString CMyClass::Population() { wxArrayString array; array.Add(ITEM1); array.Add(ITEM2); return a...
by zhouhao
Sun Jul 20, 2008 8:00 am
Forum: C++ Development
Topic: wxApplication crash in vs2008 debug run
Replies: 1
Views: 906

By the way, the same application with same version of vs 2008, wxwidgets works under Vista. ( Problematic testing is on xp )
by zhouhao
Sun Jul 20, 2008 7:54 am
Forum: C++ Development
Topic: wxApplication crash in vs2008 debug run
Replies: 1
Views: 906

wxApplication crash in vs2008 debug run

Application linked with wxWidgets 2.8.8 dynamic link unicode build will crash at "return ::PeekMessage(&msg, 0, 0, 0, PM_NOREMOVE) != 0;" when I run it inside vs2008 during debugging. The application has no problem to run outside vs 2008. Does anybody have the same problem? What is the...
by zhouhao
Mon May 12, 2008 2:08 am
Forum: C++ Development
Topic: Console application doesn't stop in ubuntu
Replies: 6
Views: 2361

There is no problem if I use back version 2.8.7.
by zhouhao
Sat May 10, 2008 6:38 pm
Forum: Compiler / Linking / IDE Related
Topic: How do I use multiple library versions: static, shared, etc
Replies: 3
Views: 1877

Is it possible to use the same wx-config for different build/version? For example, I want to build one application in this way 'wx-config --version=2.8 --debug=no --static=yes --cflags` and to build another application in another way 'wx-config --version=2.9 --debug=yes --static=no --unicode=no`?
by zhouhao
Thu May 08, 2008 4:58 am
Forum: C++ Development
Topic: Console application doesn't stop in ubuntu
Replies: 6
Views: 2361

The problem is I don't have a way to debug it. When I run the program in debug mode, it always stop at "return 0".
by zhouhao
Tue May 06, 2008 7:10 am
Forum: C++ Development
Topic: Console application doesn't stop in ubuntu
Replies: 6
Views: 2361

I know where the problem come from. I linked to a shared library testshared-debug.so. After I remove the linked library, everything is back to normal. But I'm confused. Here are my questions: 1. Why does this shared library affect my program? I don't use any function from it. 2. Why the linked share...
by zhouhao
Tue May 06, 2008 6:04 am
Forum: C++ Development
Topic: Console application doesn't stop in ubuntu
Replies: 6
Views: 2361

Haven't tried it but the following can be found from the "console" sample: wxInitializer initializer; if ( !initializer ) { fprintf(stderr, "Failed to initialize the wxWidgets library, aborting."); return -1; } I know these codes. I've purposely comments them out because of the ...
by zhouhao
Mon May 05, 2008 5:55 am
Forum: C++ Development
Topic: Console application doesn't stop in ubuntu
Replies: 6
Views: 2361

Console application doesn't stop in ubuntu

The wxwidgets console application doesn't stop in Ubuntu. I comments out everything except a simple wx include, the program sill doesn't stop. Here is my code: #include <wx/app.h> int main(int argc,char* argv[]) { return 0; } If I comments out #include <wx/app.h>, everything is fine. Any suggestion?
by zhouhao
Thu Jan 24, 2008 7:50 am
Forum: C++ Development
Topic: Loading php page problem with wxIEHtmlWin
Replies: 1
Views: 845

Sorry. I think I made a mistake. It has a problem even when I try to open a html page in xp with ie7. There must be something wrong in wxIEHtmlWin.
by zhouhao
Thu Jan 24, 2008 5:27 am
Forum: C++ Development
Topic: Loading php page problem with wxIEHtmlWin
Replies: 1
Views: 845

Loading php page problem with wxIEHtmlWin

I have a php page which redirect to different page according to id passed by client application. My client application is a wxWidget application using wxIEHtmlWin. Here is my code: wxCriticalSectionLocker locker(s_criticalSection); wxURL wurl(m_strUrl); if (wurl.GetError()==wxURL_NOERR) { wxProtocol...
by zhouhao
Fri Dec 28, 2007 12:03 pm
Forum: The Code Dump
Topic: wxTaskBarIcon with Balloon tooltips!
Replies: 39
Views: 28212

OK guys this is the latest patch. This version allows for event handling to be done (took me half a day to solve the mystery of the undefined symbol :P) Index: include/wx/taskbar.h =================================================================== RCS file: /pack/cvsroots/wxwindows/wxWindows/inclu...
by zhouhao
Thu Dec 27, 2007 7:59 am
Forum: C++ Development
Topic: Question about wxDirPickerCtrl and wxDirDialog
Replies: 6
Views: 2031

priyank_bolia wrote:O! you mean this:

Code: Select all

m_dirPickerSrc->GetWindowChildren()[1]->SetLabel(wxT("Priyank"));
It works if I changed the array index from 1 to 0.

Thank you so much.