Search found 196 matches

by megabyte
Wed Jun 18, 2008 5:23 am
Forum: C++ Development
Topic: Question about event handling mechanism
Replies: 5
Views: 719

Hello, Briefly. To avoid the problem you have to add critical section lockers in beginning of both event handlers. Something like that class CClass { ... wxCriticalSection m_csAccess; ... void OnA(void); void OnB(void); } ... void CClass::OnA(void) { wxCriticalSectionLocker lock(m_csAccess); ... } v...
by megabyte
Tue Jun 17, 2008 9:53 am
Forum: Open Discussion
Topic: Help in importing dxfimp32.flt file
Replies: 4
Views: 1594

Hi megabyte, Thanks for your reply.I am showing only 2d model.can you please tell me wat this dxfimp32.flt does and how it will help me in showing the 2d model.Do i also need opengl for showing 2d model? I cannot help you with dxfimp32.flt. If your are going to use dxfimp32.flt, try to find informa...
by megabyte
Tue Jun 17, 2008 9:19 am
Forum: Open Discussion
Topic: Help in importing dxfimp32.flt file
Replies: 4
Views: 1594

As I understand your task is to show a 3D objects from a DXF file. If so, then the dxfimp32.flt using is not a solution for you, because it works only 2D geometry.
To import 3D graphics you have to use a 3D modeling library, for instance, OpenCASCADE ( www.opencascade.org ).
by megabyte
Mon Jun 16, 2008 4:52 pm
Forum: C++ Development
Topic: Doc/View Single Doc/Multiple View Help?
Replies: 11
Views: 1288

Hello NinjaNL,

I think the Observer pattern ( http://en.wikipedia.org/wiki/Observer_pattern ) is a good point to start your task implementation.
by megabyte
Mon Jun 16, 2008 4:15 pm
Forum: wxWidgets Development (Russian)
Topic: Нынешнее место проживания
Replies: 10
Views: 3117

Эссен, ФРГ
by megabyte
Thu Dec 13, 2007 5:30 pm
Forum: Open Discussion
Topic: Multi Processor
Replies: 2
Views: 1124

Re: Multi Processor

For modern processors it is impossible to spread a thread between 2 or more CPUs. So the programm should be aware about several CPUs.
by megabyte
Mon Dec 03, 2007 12:59 pm
Forum: Platform Related Issues
Topic: Problems loading jpgs with wxEmbedded
Replies: 2
Views: 555

Is it enough RAM to store raw bitmap?
by megabyte
Thu Nov 08, 2007 8:15 am
Forum: C++ Development
Topic: wxGLCanvas wrapper
Replies: 1
Views: 460

Check if the wxUSE_GLCANVAS definition in the setup.h file is 1.
by megabyte
Thu Oct 25, 2007 7:42 pm
Forum: C++ Development
Topic: wxBufferedPaintDC not identified
Replies: 3
Views: 498

The following line will help you

Code: Select all

#include <wx/dcbuffer.h>
by megabyte
Tue Oct 16, 2007 11:44 am
Forum: C++ Development
Topic: Closing wxDialog via EndModal
Replies: 2
Views: 775

Use the SetReturnCode and the Close methods.
by megabyte
Tue Oct 16, 2007 11:43 am
Forum: C++ Development
Topic: GUI update from another thread
Replies: 6
Views: 963

I don't see any problem to use threads in a library which has no main thread. The library is used in an application which has a main thread and a messages loop.
by megabyte
Tue Oct 16, 2007 10:10 am
Forum: C++ Development
Topic: Resizeable wxGLCanvas on wxPanel
Replies: 1
Views: 609

You should you use the wxSizer class to resize a wxGLCanvas instance. Something like that

Code: Select all

wxBoxSizer *pSizer = new wxBoxSizer(wxVERTICAL);
this->SetSizer(pSizer);
wxGLCanvas *pCanvas = new wxGLCanvas(this);
pSizer->Add(pCanvas, 1, wxGROW|wxALL, 0);
by megabyte
Tue Oct 16, 2007 10:04 am
Forum: C++ Development
Topic: Fonts
Replies: 2
Views: 468

Re: Fonts

Auria wrote:But i haven't been able to render it on top o the OpenGL stuff so i assume i cannot render with DC primitives on top of OpenGl stuff - i am right?
Yes.
How about to use FTGL?
by megabyte
Mon Aug 13, 2007 9:26 am
Forum: Platform Related Issues
Topic: wxListCtrl on wxWinCE at 640x480. Icons are double sized.
Replies: 1
Views: 512

Found a solution. It's necessary to add the following lines to the resource file

Code: Select all

HI_RES_AWARE CEUX 
BEGIN
    0x0001
END