Search found 113 matches

by Ugly!
Thu Apr 30, 2009 6:25 am
Forum: C++ Development
Topic: Deleting a wxMutex on detachable threads
Replies: 3
Views: 759

Deleting a wxMutex on detachable threads

Hi, I m having a problem. I have some fire and forget threads that do some stuff. I m using two wxMutex declared as: mainFrm.h class mainFrm:wxFrame{ ... public: static wxMutex *s_mutexSerial; static wxMutex *s_mutexCfgNumber; }; mainFrm.cpp wxMutex * mainFrm::s_mutexSerial = 0; wxMutex * mainFrm::s...
by Ugly!
Tue Sep 09, 2008 4:23 am
Forum: C++ Development
Topic: multi threading problem
Replies: 1
Views: 473

Re: multi threading problem

My app includes a real time component, which is running in it's own thread. The problem is I need to prevent wxWidgets from changing certain things for during the rendering to ensure that the area i'm rendering fits on the panel for that frame (eg there is no chance of displaying "old" areas of the...
by Ugly!
Tue Sep 09, 2008 4:20 am
Forum: C++ Development
Topic: Threading and memory usage
Replies: 7
Views: 1762

You are creating all the threads on the heap. This is not bad for threads. I guess somehow thread's memory is released on program exit. But they won't be freed upon the thread termination. So, if you don´t want memory pilling up, my advice would be to delete the thread when its work is done. Regards...
by Ugly!
Fri Aug 29, 2008 2:12 pm
Forum: C++ Development
Topic: print data from wxgrid
Replies: 1
Views: 575

Re: print data from wxgrid

hello every one, i have some data in wxgrid i need to print the data with all the cells. can any one tell me how i can do that i need to print the grid also. (i have tried copying dc by using dc::blit function but its not working) I created some classes to do this some time ago. Don't know if it wi...
by Ugly!
Fri Aug 29, 2008 2:05 pm
Forum: C++ Development
Topic: MultiThread problem
Replies: 1
Views: 665

You should NOT update or deal with any controls directly from the thread. The way to go here would be to have the thread to post an event on the parent. Then add this event to the parent's event table.

I'm also working with serial COM and that's the way it works for me.

Best regards, Matias
by Ugly!
Mon Aug 11, 2008 8:05 am
Forum: C++ Development
Topic: Why my wxListCtrl style is different from the sample?
Replies: 3
Views: 925

Your are probably missing the Windows XP style... From the wiki: If project uses a resource (.rc), add the line: #define wxUSE_NO_MANIFEST 1 - i.e. the 'text' sample .rc file will look like this: mondrian ICON "mondrian.ico" #define wxUSE_NO_MANIFEST 1 #include "wx/msw/wx.rc" Open your .rc file and ...
by Ugly!
Mon Jun 23, 2008 4:15 am
Forum: C++ Development
Topic: Bad rendering in Windows XP SP2 UE8
Replies: 1
Views: 647

Fixed. Forget this.

A system restart fixed this issue. This has to do with the fact that my PC does not wake up at its best (after pressing Sleep button). Sorry for the post.

Regards, Matías
by Ugly!
Mon Jun 23, 2008 4:06 am
Forum: C++ Development
Topic: Bad rendering in Windows XP SP2 UE8
Replies: 1
Views: 647

Bad rendering in Windows XP SP2 UE8

Hi, I´m getting some rendering problems on Windows XP SP2 UE8.
Unfortunaly I can't get my hands on another PC at this moment. I´ve been away from wx app develompment for quite some time now.

Any idea about this?

(See the picture plz)



Best regards, Matías
by Ugly!
Fri May 18, 2007 2:57 pm
Forum: C++ Development
Topic: how to produce publishing quality documentation from drawing
Replies: 4
Views: 868

Very nice!
Thnx T-Rex, it will sure come handy in the future.

Mat
by Ugly!
Fri May 18, 2007 2:40 pm
Forum: C++ Development
Topic: deleting selected items in a wxListCtrl ... BETTER way?
Replies: 7
Views: 2784

Re: deleting selected items in a wxListCtrl ... BETTER way?

Use wxListView instead of wxListCtrl. It's the same as wxListCtrl but with some easy to use methods. void MyFrame::OnBitmapbuttonMinusClick( wxCommandEvent& event ) { long index=filez->GetFirstSelected(); long count=filez->GetItemCount(); if(count==1)//if there is only one item in the list, deleted ...
by Ugly!
Fri May 18, 2007 2:09 pm
Forum: C++ Development
Topic: create diagrams
Replies: 7
Views: 1062

Re: create diagrams

hello, I would like to create an interface where I could build diagrams with line and components and I could define characteristics and functions for the diagram components. Which classes should I use to do that? This is kinda vague. Can you elaborate a little more? Would this be like a drawing app...
by Ugly!
Fri May 18, 2007 2:04 pm
Forum: C++ Development
Topic: how to produce publishing quality documentation from drawing
Replies: 4
Views: 868

You can try using LatextoRtf.
You'll have to install latex on every PC. On the other hand, latex files are simple plain text files. You can embed almost any image format (SVG or EPS will be the best).

Regards, Mat
by Ugly!
Fri May 18, 2007 1:57 pm
Forum: Compiler / Linking / IDE Related
Topic: bakefile problem
Replies: 2
Views: 663

Mmm...first of all, there is no reason why you should have the sources mixed with the objs if you are using bakefile. Second, the place where objs are placed may vary from compiler to compiler. Anyway, I think your are not using bakefiles as good as you can. I use bakefiles for my wx projects using ...
by Ugly!
Wed May 16, 2007 6:11 pm
Forum: wxCode
Topic: error with firebird and wxActiveRecordGenerator
Replies: 3
Views: 1068

Re: error conditions

The error happend when I press Generate button. I am using the example database employee.fbd and not use relations (I select table COUNTRY), and I don't find the file wxarg. It's being worked on. The problem comes from the fact that Firebird doesn't have a LIMIT clause. Instead it uses FIRST and SK...
by Ugly!
Thu May 10, 2007 4:44 pm
Forum: wxCode
Topic: error with firebird and wxActiveRecordGenerator
Replies: 3
Views: 1068

This happens when you press the Generate button?
If it does, can you post the wxarg file and an example of a database where it fails?

Does it fails with any kind of database/table? Are you using relations?


Here to help you.
Regards, Matias