Search found 72 matches

by bcteh
Tue Apr 03, 2007 8:07 am
Forum: C++ Development
Topic: wxThread: wait timeout crash
Replies: 6
Views: 1366

Hi, I declare it as class member, It work Am i need to delete mutex,condition after finish process ? If without delete it, Is this cause an memory leak ? Try to do delete mutex; delete contidion After finish process , it crash on timeout. Class member on TextCtrl.h ========================= wxMutex ...
by bcteh
Tue Apr 03, 2007 7:18 am
Forum: C++ Development
Topic: wxThread: wait timeout crash
Replies: 6
Views: 1366

wxThread: wait timeout crash

Hi, I am doing a small test program for testing on wxThread. What i try to do is when user type in a character # in wxStyleControl. I trigger a thread to do some process and wait it for finish or Time out. My testing program crash when it timeout. Which error: 14:56:43: Time Out ..\..\include\wx/thr...
by bcteh
Tue Mar 20, 2007 10:35 am
Forum: C++ Development
Topic: parse/split oracle sql script to sql statement
Replies: 2
Views: 420

parse/split oracle sql script to sql statement

Hi, How to parse/split oracle sql script to each SQL statement ? The sql statement can terminated either ; or / , it also contain a comment (block or line comment) and also program unit (procedure and package). Below sql script , I would like to parse to 5 sql statement. Current, look on using wxLex...
by bcteh
Wed Feb 28, 2007 6:40 am
Forum: C++ Development
Topic: wxAuiNotebook - Tab on RIGHT,LEFT OR BOTTOM
Replies: 1
Views: 378

wxAuiNotebook - Tab on RIGHT,LEFT OR BOTTOM

Hi,

How to set tab on wxAuiNotebook align on RIGHT,LEFT OR BOTTOM ?

It try window wxAUI_NB_BOTTOM but it still align on TOP.
Please help

Thank
by bcteh
Tue Feb 13, 2007 2:34 pm
Forum: C++ Development
Topic: memory leack ?
Replies: 2
Views: 532

Thank for reply.

If i create the new VC++ with above sample.
It didn't cause a memory leaks.

That should be my mistake because before that
i test this at my project that contain a lot for c++ file(inside have memory leaks).
I thought without calling that file it will not cause memory leaks.
by bcteh
Sun Feb 11, 2007 8:29 am
Forum: C++ Development
Topic: memory leack ?
Replies: 2
Views: 532

memory leack ?

Hi, Why this simple program contain a lot of memory leack ? How can i solve it ? I am using VC++ Version 6 SP2 and wxWidgets-2.8.0. mainFrame.h --------------------------- #ifndef _MAINFRAME_H_ #define _MAINFRAME_H_ #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "mainFrame.h" #en...
by bcteh
Tue Dec 19, 2006 3:40 am
Forum: C++ Development
Topic: wxDateTime::Parseformat return less one month
Replies: 3
Views: 701

In this case, after PasteFormat, to display the expected month i should
increase it by one.

dt.ParseFormat("17-Jan-2005 11:20:21",wxT("%d-%b-%Y %T"));
wxLogDebug(wxString::Format(wxT("Year=%i Month=%i Day=%i"),dt.GetYear(),dt.GetMonth()+1,dt.GetDay()));

Thank
by bcteh
Mon Dec 18, 2006 10:22 am
Forum: C++ Development
Topic: wxDateTime::Parseformat return less one month
Replies: 3
Views: 701

wxDateTime::Parseformat return less one month

Hi, I use the below code to convert string date to wxDateTime. The month return alway less one month. Am i do a mistake or is this a bug in wxWidget? Version : wxWidgets-2.6.3 wxDateTime dt; dt.ParseFormat(wxT("17-Jan-2005 11:20:21"),wxT("%d-%b-%Y %T")); if (dt.IsValid()) { wxLogDebug(wxString::Form...
by bcteh
Mon Dec 18, 2006 2:01 am
Forum: C++ Development
Topic: Toolbar on Panel
Replies: 3
Views: 961

Toolbar on Panel

Hi,

Is that posible to put in wxToolBar on wxPanel?
Or something similar to "Dialog Block"
http://www.anthemion.co.uk/dialogblocks/
Editor tabpage. It look like puting toolbar in Tab page.

I would like to put in the toolbar in middle of dialog.

Regards
Teh
by bcteh
Tue Dec 05, 2006 10:32 am
Forum: C++ Development
Topic: wxGrid : Single click to start Edit
Replies: 2
Views: 552

Thank a lot . That is a good sample and document.

Regards
Teh
by bcteh
Tue Dec 05, 2006 9:15 am
Forum: C++ Development
Topic: wxGrid : Single click to start Edit
Replies: 2
Views: 552

wxGrid : Single click to start Edit

Hello,

How to make wxGrid to start edit by single click only.
At demo program, the cell can only edit by Double click the cell.

Regards
Teh
by bcteh
Thu Nov 30, 2006 3:58 am
Forum: Compiler / Linking / IDE Related
Topic: Compiling Database Support and writing Project Files
Replies: 2
Views: 618

Hello,

How anyone have any idea of this?
I also looking for that answer.

Thank