Search found 176 matches

by Romas
Wed Jan 06, 2010 1:00 pm
Forum: General Development
Topic: wxWidgets on a Server App
Replies: 2
Views: 819

Why do you want to use wxWidgets for server side app? Just because it has "multiplatform" in it's description? To write good server app you need to use right tools. Socket classes are small flowers in the whole app. It is not worth to implement all the library just because you need few things from i...
by Romas
Mon Nov 30, 2009 9:13 am
Forum: C++ Development
Topic: link error (2.8 -> 2.9)
Replies: 4
Views: 561

There could be number of solutions. I would recommend to double check the include directories of your project (-I...) and library paths(-LIBPATHS) (or if this is possible, to rename old wx directory). Of course, rebuild new wx, rebuild whole project with new wx.
by Romas
Fri Nov 27, 2009 9:44 am
Forum: C++ Development
Topic: How to implement a 60 FPS Canvas with wxDC?
Replies: 5
Views: 1050

Flashing occurs because you do not handle erase event properly. But for a movie like app I would think about gl canvas.
by Romas
Tue Nov 10, 2009 8:53 am
Forum: C++ Development
Topic: wxString conversion
Replies: 9
Views: 1990

Is your project unicode? If yes, I think you do not understand the meaning of the "unicode". When you do print ("%s", unicode_str); Your unicode string will look in bytes (and chars): T 00 h 00 i 00 s 00. In hex :) When you call print, it will print your string until it meet first occurance of \0 ch...
by Romas
Mon Nov 02, 2009 4:17 pm
Forum: C++ Development
Topic: wxPaintDC graph
Replies: 7
Views: 1154

wxPaintDC should be constructed in OnPaint event. You should call your drawGraph function from this event.
by Romas
Wed Oct 21, 2009 12:50 pm
Forum: C++ Development
Topic: Multi threaded appli is crashing while running under gdb
Replies: 3
Views: 538

Can you give some code? Can you minimize the problem and try gdb with it? Can you try gdb with completely different program? Are you debug 'debug mode' or 'release mode'?
by Romas
Wed Oct 21, 2009 10:21 am
Forum: C++ Development
Topic: Reading/Writing Sockets
Replies: 1
Views: 409

It depends of what are you trying to achieve. If you use non-blocking socket, you can always check if data is arrived and the amount of arrived data. However, you will need to use additional internal buffer to hold all data that is arrived. Think in this way, you want to get 1mb of data. You need to...
by Romas
Wed Oct 21, 2009 10:14 am
Forum: C++ Development
Topic: Multi threaded appli is crashing while running under gdb
Replies: 3
Views: 538

Hello,
What platform are you working with (I assume it is not Windows)? Do you get signal of fault, do you know where your program crashes? Source code or sth to help you :)
by Romas
Tue Oct 20, 2009 5:19 am
Forum: C++ Development
Topic: wxArray size limit
Replies: 6
Views: 861

I do not understand why are you making a fuss here because of int? If you are not happy with wxArray, use stl vector, it uses size_t which is unsigned int(long) by default. I doubt that you use outdated compiler for wxWidget and/or your project, so sizeof (int) would be equal to sizeof(long). Is it ...
by Romas
Mon Oct 19, 2009 7:23 pm
Forum: C++ Development
Topic: wxArray size limit
Replies: 6
Views: 861

Hm, correct me if I am wrong, but in c++ language, there is a rule: sizeof (int) <= sizeof (long). For most of nowdays compilers sizeof (int) is exactly 32 bits, and the long has the same length. Well, for a 64 processor is a bit more, but the truth stayes the same. Unless, you are coding with old c...
by Romas
Sun Oct 11, 2009 6:07 pm
Forum: C++ Development
Topic: delegating events from always-on-top window to other windows
Replies: 10
Views: 2704

I wont argue with you, but it simply cannot work :)

EDIT:
A little research gave me result, that WS_EX_TRANSPARENT will not give a desired result when using alone. You also need to add WS_EX_LAYERED style...
by Romas
Sun Oct 11, 2009 3:48 pm
Forum: C++ Development
Topic: delegating events from always-on-top window to other windows
Replies: 10
Views: 2704

This is a window style, that makes a window to be the last in the painting queue. This one is not connected with mouse/keyboard input... WS_EX_TRANSPARENT Specifies that a window created with this style should not be painted until siblings beneath the window (that were created by the same thread) ha...
by Romas
Sun Oct 11, 2009 1:14 pm
Forum: C++ Development
Topic: delegating events from always-on-top window to other windows
Replies: 10
Views: 2704

WM_NCHITTEST is good for windows in the same thread, so making window "transparent" for other windows in different thread or process it is useless. I do not know how to help you. I doubt that you will find easy solution for this. You still need to capture window messages and pass it to windows below...
by Romas
Sat Oct 10, 2009 6:36 pm
Forum: C++ Development
Topic: delegating events from always-on-top window to other windows
Replies: 10
Views: 2704

If the platform would be windows and you would like to make a little hack I would say:

All You need to do is to handle WM_NCHITTEST message and return HTTRANSPARENT.
by Romas
Thu Oct 08, 2009 12:43 pm
Forum: C++ Development
Topic: beginers problem
Replies: 5
Views: 689

Well, the errors probably come from missing setup.h file. You might copy this to particular folder. When you compiler (build) wxWidgets you have a library in single or many files. Then you are free to try samples in wxWidgets package. If you really need to make a simple GUI, just modify any sample a...