Search found 674 matches
- Thu Aug 25, 2011 4:48 pm
- Forum: C++ Development
- Topic: variable problem
- Replies: 13
- Views: 3457
Re: variable problem
Could you please log the complete code of your ButtonsPanel constructor ? What I highly suspect is that you would declare a local variable of same name in this constructor, so that the Load is not called on the instance object. Note that you already declare a local object "Player Hrac" in ...
- Wed Aug 24, 2011 4:26 pm
- Forum: C++ Development
- Topic: Disabling access violation handling on Win32
- Replies: 3
- Views: 1568
Re: Disabling access violation handling on Win32
AV and other bugs like division by 0 are Win32 exceptions, not C++ exceptions. Yes, this is exacly what I told in previous post :-) And yes, you can catch them with SEH . I did not know, but it's interesting. But I confirm you what I told in previous post: by default, those errors are not catched b...
- Wed Aug 24, 2011 9:45 am
- Forum: Platform Related Issues
- Topic: Complie error: loses precision ( wxMSW-2.8.12 mingw64)
- Replies: 4
- Views: 6020
Re: Complie error: loses precision ( wxMSW-2.8.12 mingw64)
With a 64 bits compiler, a void* is 8 bytes long. I suppose wxWidgets coders did not take that into account when coding this part of the code. The problem is that this error can either be harmfull or problematic depending on what is stored in this void*. I highly suspect that the conversion will not...
- Wed Aug 24, 2011 5:46 am
- Forum: C++ Development
- Topic: Disabling access violation handling on Win32
- Replies: 3
- Views: 1568
Re: Disabling access violation handling on Win32
an access violation is not a C++ exception. And, to my best knowledge, they are not catched by wxWidgets (and I doubt it would be possible to be catched). So, you should be able to catch them with your debugger. Note that concerning exceptions, wxWidgets offers you mechanisms to handle them, but, as...
- Tue Aug 23, 2011 4:35 pm
- Forum: C++ Development
- Topic: 'SetFocus' failed with error 0x00000057 (the parameter is in
- Replies: 15
- Views: 9741
Re: 'SetFocus' failed with error 0x00000057 (the parameter i
Well, I investigated this problem furthermore and it does not seem to be linked to sashWindow. I can generate this problem with apps that do not have sashWindows. From what I saw, the problem occurs when wxWidgets tries to restore keyboard focus to the last window that had the focus. In this case, t...
- Tue Aug 23, 2011 3:53 pm
- Forum: C++ Development
- Topic: 'SetFocus' failed with error 0x00000057 (the parameter is in
- Replies: 15
- Views: 9741
Re: 'SetFocus' failed with error 0x00000057 (the parameter i
I can reproduce this problem on my Win7 computer, with MSVC 2008 compiler. I nearly 100% sure it was not present on WinXp with MSCV 2010 compiler. I can check tomorrow if the problem is caused by Win7 or by the compiler version. I will investigate furthermore to see if I can find the origin of the p...
- Tue Aug 23, 2011 12:55 pm
- Forum: C++ Development
- Topic: wxDC: draw lines with Alpachannel?
- Replies: 5
- Views: 2015
Re: wxDC: draw lines with Alpachannel?
Well, you should maybe check that the code I gave you works because, if what DoubleMax says is correct, maybe it will not work on all platforms, which is maybe what Auria wanted to say when asking which OS you use...
- Tue Aug 23, 2011 12:08 pm
- Forum: C++ Development
- Topic: wxDC: draw lines with Alpachannel?
- Replies: 5
- Views: 2015
Re: wxDC: draw lines with Alpachannel?
Did you try setting a color to your pen whose alpha channel is not opaque ? Take a look at :
wxPen::SetColour and
wxColour::wxColour(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha=wxALPHA_OPAQUE)
wxPen::SetColour and
wxColour::wxColour(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha=wxALPHA_OPAQUE)
- Tue Aug 23, 2011 11:13 am
- Forum: C++ Development
- Topic: 'SetFocus' failed with error 0x00000057 (the parameter is in
- Replies: 15
- Views: 9741
Re: 'SetFocus' failed with error 0x00000057 (the parameter i
I compiled the sash sample with wx2.8.11, MSVC 2010 (I do not have MSVC2008 installed on my computer), ANSI, static, mutllib, debug build. There is no message about a set focus problem. I run this code on Windows XP. If you are interested, I can try with MSVC 2008 on a Win7, same build option, but I...
- Tue Aug 23, 2011 5:49 am
- Forum: C++ Development
- Topic: 'SetFocus' failed with error 0x00000057 (the parameter is in
- Replies: 15
- Views: 9741
Re: 'SetFocus' failed with error 0x00000057 (the parameter i
P.S. wxWidgets's sample code of SashWindow has this problem. Do you mean you have the same crash with the sample application ? If yes, then you should probably open a ticket for a bug. Note that what surprises me is that your configuration does not seem to be an exotic one (wx2.8.11, MSVC 2008). So...
- Mon Aug 22, 2011 2:07 pm
- Forum: C++ Development
- Topic: 'SetFocus' failed with error 0x00000057 (the parameter is in
- Replies: 15
- Views: 9741
Re: 'SetFocus' failed with error 0x00000057 (the parameter i
You'll need to post the relevant code e.g. how you get to the function that contains SetFocus(), and the function itself +1 Well, reading the backtrace, I am not sure Nelson is connecting an event handler to the 'SetFocus' event. From what I see, the function that is triggered is the default wxWind...
- Mon Aug 22, 2011 5:40 am
- Forum: C++ Development
- Topic: wxFTP encryption
- Replies: 1
- Views: 970
Re: wxFTP encryption
FTP is an unsecure protocol. If you need encryption, I would advice you using the SFTP protocol.
- Sun Aug 21, 2011 6:15 am
- Forum: Compiler / Linking / IDE Related
- Topic: Problem with static build under Code::Blocks
- Replies: 2
- Views: 1949
Re: Problem with static build under Code::Blocks
the goal of the wx-config --static flag is to perform a static link of wxWidgets. But the other libs still link dynamically. I don't think it's a problem if you let the other libs as dynamic. All you will have to do is to ensure that they are properly installed on the system you run the app. You can...
- Sat Aug 20, 2011 5:55 am
- Forum: C++ Development
- Topic: Implementing MVC in wxWidgets
- Replies: 13
- Views: 15748
Re: Implementing MVC in wxWidgets
I read your code and it seems to be OK. will I have to register same callback and handle multiple data type or should I make two callback for each action and register them to different models? You can choose the solution that you prefer. Note that if you choose first option, you can use the 'user_da...
- Thu Aug 18, 2011 4:20 pm
- Forum: C++ Development
- Topic: wxListEvent
- Replies: 2
- Views: 875
Re: wxListEvent
the proper function is wxListEvent::GetIndex()