Search found 16 matches

by martin the third
Wed Aug 19, 2009 5:42 am
Forum: C++ Development
Topic: Icon Resource Problem (simple?)
Replies: 5
Views: 1487

I tried all of the suggestions, none of which worked, but I did finally find out what the problem was. I had inadvertently specified "ChaosTools.rc" as the output file for the resource compiler. It should have been "ChaosTools.res" which is the format for a compiled resource. (In my defense, the opt...
by martin the third
Tue Aug 18, 2009 11:25 pm
Forum: C++ Development
Topic: Icon Resource Problem (simple?)
Replies: 5
Views: 1487

Icon Resource Problem (simple?)

I'm sure I'm just missing something, but I can't get my icon resources to load properly. I'm using the trunk (well, from about a week ago) on Vista with MSVC++ 2008 Professional. My .rc looks like this: aaaaaa ICON "chaostools.ico" chaostools ICON "chaostools.ico" #include "wx/msw/wx.rc" And the cod...
by martin the third
Sun Aug 09, 2009 7:43 am
Forum: General Development
Topic: Program Design Question (subclass or split across files?)
Replies: 1
Views: 718

Program Design Question (subclass or split across files?)

I have a question more about general program design than specifically wxWidgets. Right now, I have a program that has several tabs, each with a lot of content carrying a lot of code. Would it be better, design-wise, to subclass each of these tabs and split these classes into separate files? Or would...
by martin the third
Tue Nov 25, 2008 4:23 am
Forum: C++ Development
Topic: Detatchable Threads not Releasing Resources (or wxImage?)
Replies: 2
Views: 705

Ah, thank you very much. I looked for errors like that, guess I just needed a second set of eyes. In fixing this problem, it caused another one I have to sort out now; the data being passed back to the main thread isn't coming in the right order. (this is calculating lines of the mandelbrot set, and...
by martin the third
Mon Nov 24, 2008 9:53 pm
Forum: C++ Development
Topic: Detatchable Threads not Releasing Resources (or wxImage?)
Replies: 2
Views: 705

Detatchable Threads not Releasing Resources (or wxImage?)

I have a lot of detatchable threads that are created, run, and then should terminate and clean up their resources. But they don't, they eat up my memory until the program segfaults. I can't see any reason why this should happen, since detatchable threads are supposed to destroy themselves, and they ...
by martin the third
Tue Aug 12, 2008 10:58 pm
Forum: C++ Development
Topic: Threads and Gui (and multiple inheritance)
Replies: 9
Views: 1853

The way threads work in wxWidgets is making a bit more sense now, but I have a few questions about what's been said in this thread... I wouldn't modify a bitmap in the worker thread but I would change an array of bits. When the array of bits is updated, you can send an event to the GUI thread. If th...
by martin the third
Tue Aug 12, 2008 4:10 am
Forum: C++ Development
Topic: Threads and Gui (and multiple inheritance)
Replies: 9
Views: 1853

Threads and Gui (and multiple inheritance)

I'm looking for a way to use a worker thread to perform calculations that would then be used to update the bitmap in a wxStaticBitmap control on my main wxFrame. I've never used threads before and I'm having some problems with this. The most recent way I tried to do this was to make a global wxBitma...
by martin the third
Tue Jul 22, 2008 10:31 pm
Forum: C++ Development
Topic: Dockable toolbar (AUI)
Replies: 1
Views: 534

You could check the position property of the AUI pane in a move event, I should think. And then you could prevent it from being moved further.
by martin the third
Tue Jul 22, 2008 3:49 am
Forum: C++ Development
Topic: Efficient Bitmap access with rawbmp and threads
Replies: 0
Views: 394

Efficient Bitmap access with rawbmp and threads

First I'm going to need to apologize for what will be a gross lack of (relevant) code in this post. I'm writing several programs that need to access pixel data very quickly and efficiently. My current implementation uses a wxStaticBitmap to display a wxBitmap that I draw to with a wxBufferedDC. Here...
by martin the third
Thu Apr 17, 2008 3:26 am
Forum: C++ Development
Topic: faster bitmap drawing?
Replies: 5
Views: 1781

I'm trying to use this method for faster mathematical drawing. However, when I try to use the sample code in rawbmp.h, the program crashes with a segmentation fault. for ( int x = 0; x < 10; ++x, ++p ) { p.Red() = r; p.Green() = g; p.Blue() = b; } This part is to blame, it seems that .Red(), .Green(...
by martin the third
Mon Apr 16, 2007 3:05 am
Forum: Compiler / Linking / IDE Related
Topic: Need help with wxMozilla
Replies: 3
Views: 1235

Howdy =) I've been meaning to make a post about how to compile wxMozilla under windows, but theres one bug that I was hoping to work out before I did. The current build will not allow you to connect to a site over https, which may or may not be an issue for you. I apologize for the circular logic fo...
by martin the third
Thu Feb 01, 2007 2:57 pm
Forum: Compiler / Linking / IDE Related
Topic: Problems compiling wxMozilla in VS 2005
Replies: 4
Views: 827

I've managed to get a patched version of wxwidgets to run with the firefox 1.5.0.8gre w/ VS2005 and wxWidgets 2.8. I'm at school right now so I can't show you anything till I get home, but basically: (These instructions will be slightly off till I can get home and correct them) Compile wxwidgets wit...
by martin the third
Sat Sep 02, 2006 10:36 pm
Forum: C++ Development
Topic: wxMozilla doesnt connect to https
Replies: 0
Views: 269

wxMozilla doesnt connect to https

Hey, Im writing a program that uses wxMozilla 0.5.6 w/wxWidgets 2.7.0, both release and statically linked. For some reason anytime I navigate to a secure site (https) I get kicked off. The codebase is firefox 1.0.5, so I really shouldnt have this problem. Anyone else encountered this, or know how to...
by martin the third
Thu Aug 24, 2006 12:17 pm
Forum: Compiler / Linking / IDE Related
Topic: MSVC++ 2005 EE, relative path problems when compiling
Replies: 6
Views: 1747

Thanks, I finally got it working.

Im now working on compiling wxMozilla and Im very close to completing that task.

-m3
by martin the third
Sat Aug 19, 2006 6:33 am
Forum: Compiler / Linking / IDE Related
Topic: MSVC++ 2005 EE, relative path problems when compiling
Replies: 6
Views: 1747

Thanks, I managed to fix it anyway, but did what you suggested anyway in hopes it would fix the problems that made... Now I have huge lists of link errors (1659 of them), apparently it can't find the libraries Ive linked against. The errors are all in the format: wxbase26.lib(stream.obj) : error LNK...