Search found 73 matches

by jazz
Wed Mar 28, 2007 12:23 pm
Forum: C++ Development
Topic: wxMediaCtrl causes crash on second call to Load()
Replies: 2
Views: 1043

In the interest of sharing information, I finally figured this out. On a whim I decided to remove my Cole2k media pack that I use for all my codecs. Then I started up Windows Media Player to play an MP3 and let it download the Fraunhofer codec. After that my app works fine and wxMediaCtrl doesn't bo...
by jazz
Sun Mar 25, 2007 9:55 pm
Forum: C++ Development
Topic: Problem with Blit
Replies: 2
Views: 974

I don't see how this code would work either. You're drawing on the wxMemoryDC, not the wxBitmap. As far as I know, doing so will not update the original wxBitmap. Regardless, the way you're doing it is going to be a massive resource hog. Like Auria said, I'd just maintain an vector of coords and dra...
by jazz
Sun Mar 25, 2007 9:28 am
Forum: C++ Development
Topic: wxMediaCtrl causes crash on second call to Load()
Replies: 2
Views: 1043

!!UPDATE!!

I just built the Mediaplayer sample in wxWidgets-2.8.2\samples\mediaplayer, executed it and clicked File\Open File. It played my MP3 the first time, but then when i clicked File\Open File again it crashed just like my app.

Umm.. help!?
by jazz
Sun Mar 25, 2007 9:09 am
Forum: C++ Development
Topic: wxMediaCtrl causes crash on second call to Load()
Replies: 2
Views: 1043

wxMediaCtrl causes crash on second call to Load()

Ok, first off, I don't even know this is suppose to work but I'm thinking "why shouldn't it?" Basically i have extended wxMediaCtrl to create my own class. When I want to play a file i first call wxMediaCtrl::Load( filename ) then once the EVT_MEDIA_LOADED event fires I call wxMediaCtrl::P...
by jazz
Sat Mar 17, 2007 10:38 am
Forum: C++ Development
Topic: copying unsigned char array?
Replies: 2
Views: 1275

Just guessing here, but the length could be wxImage::GetHeight() * wxImage::GetWidth() I would try something like this: unsigned char* alphaCopy = new unsigned char[length]; memcpy(alphaCopy, wxImage::GetAlpha(), length); How does your memcpy code look like? Geez i can be such a n00b sometimes. I s...
by jazz
Sat Mar 17, 2007 9:00 am
Forum: C++ Development
Topic: copying unsigned char array?
Replies: 2
Views: 1275

copying unsigned char array?

Hey all. I'm trying to play around with wxImage alpha channel data and I seem to be a little stumped with how to handle unsigned char* 's properly. Basically, wxImage::GetAlpha() returns a pointer to an unsigned char* array so I can directly manipulate the alpha channel. Before doing this though, I'...
by jazz
Thu Mar 15, 2007 11:02 pm
Forum: Compiler / Linking / IDE Related
Topic: Problems linking when using wxMediaCtrl
Replies: 2
Views: 1416

Ok, I just got this working. This is something I've never come across before. Basically in the linker settings in my IDE i had to move the libwxmsw28_media.a entry higher up the list so (i'm assuming) it gets linked before anything else. I suppose it makes sense, but it's definitely something new fo...
by jazz
Thu Mar 15, 2007 10:25 pm
Forum: Compiler / Linking / IDE Related
Topic: Problems linking when using wxMediaCtrl
Replies: 2
Views: 1416

Problems linking when using wxMediaCtrl

Hey all, This one really has me stumped and the forums and even google have nothing helpful. :( I'm trying to use wxMediaCtrl but when I compile and link my program it bombs out with: ...\src\msw\ole\activex.cpp:653: undefined reference to `wxConvertOleToVariant(tagVARIANT const&, wxVariant&...
by jazz
Wed Jun 14, 2006 2:27 am
Forum: C++ Development
Topic: question about wxSocketBase::Read
Replies: 2
Views: 1025

and your chars probably come from forgetting to "end" your buffer with an '\0' after you read data to it. buffer[mysocket->LastCount()]='\0'; I'm getting this problem myself and I'm not quite sure this is correct. Anywayz, here's some code I'm using to prove a point: char t_buf[MAX_PACKET...
by jazz
Mon May 22, 2006 12:02 am
Forum: C++ Development
Topic: wxHandleFatalExceptions() ?? What's the caper?
Replies: 2
Views: 1057

Typical. :roll:

Thanks lowjoel.
by jazz
Fri May 19, 2006 2:34 am
Forum: C++ Development
Topic: wxHandleFatalExceptions() ?? What's the caper?
Replies: 2
Views: 1057

wxHandleFatalExceptions() ?? What's the caper?

Does wxHandleFatalExceptions() work? It's 'documented' but I keep getting undeclared errors when compiling.

I'm using MinGW and I've seen vague references to it having SEH support. I guess the question is does wxWidgets support SEH with anything other than VC++?

Thoughts anyone?
by jazz
Wed May 17, 2006 1:08 am
Forum: General Development
Topic: Compiling wxWidgets on MSW with ODBC
Replies: 1
Views: 996

Just found an obscure post on another forum which helped with this.

For anyone else doing this, you need to edit $(WX_DIR)\include\msw\setup.h and set wxUSE_ODBC to 1 in there as well.
by jazz
Tue May 16, 2006 10:31 pm
Forum: General Development
Topic: Compiling wxWidgets on MSW with ODBC
Replies: 1
Views: 996

Compiling wxWidgets on MSW with ODBC

Hey all, I'm just porting my project over to windows and seem to be having trouble with ODBC support in wxWidgets. My project compiles but when it goes to link i get undefined reference errors such as: .objs\odbc.o:odbc.cpp:(.text+0x5b2): undefined reference to `_imp___ZN14wxDbConnectInfC1EPvRK8wxSt...
by jazz
Mon Feb 20, 2006 12:59 am
Forum: C++ Development
Topic: wxFrame kills app from inside DLL
Replies: 7
Views: 2489

Do you instantiate a wxApp? Of course. My logger class actually inherits wxApp. Solved tho. It was sort of to do with how i was loading the DLL. I was linking the library instead of calling LoadLibary(), so dllmain was not was not being called. Which meant this part: wxSetInstance((HINSTANCE)hInst)...
by jazz
Sat Feb 18, 2006 12:48 pm
Forum: C++ Development
Topic: wxFrame kills app from inside DLL
Replies: 7
Views: 2489

Re: umm!! ur not constrcting the frame object properly

I think what sarat is saying; is that you should instantiate from a wxDialog class that you inherit, not from a standard class. I guess wxDialog(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style...