Search found 73 matches
- Wed Mar 28, 2007 12:23 pm
- Forum: C++ Development
- Topic: wxMediaCtrl causes crash on second call to Load()
- Replies: 2
- Views: 1068
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...
- Sun Mar 25, 2007 9:55 pm
- Forum: C++ Development
- Topic: Problem with Blit
- Replies: 2
- Views: 1001
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...
- Sun Mar 25, 2007 9:28 am
- Forum: C++ Development
- Topic: wxMediaCtrl causes crash on second call to Load()
- Replies: 2
- Views: 1068
- Sun Mar 25, 2007 9:09 am
- Forum: C++ Development
- Topic: wxMediaCtrl causes crash on second call to Load()
- Replies: 2
- Views: 1068
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...
- Sat Mar 17, 2007 10:38 am
- Forum: C++ Development
- Topic: copying unsigned char array?
- Replies: 2
- Views: 1327
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...
- Sat Mar 17, 2007 9:00 am
- Forum: C++ Development
- Topic: copying unsigned char array?
- Replies: 2
- Views: 1327
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'...
- Thu Mar 15, 2007 11:02 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Problems linking when using wxMediaCtrl
- Replies: 2
- Views: 1445
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...
- Thu Mar 15, 2007 10:25 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Problems linking when using wxMediaCtrl
- Replies: 2
- Views: 1445
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&...
- Wed Jun 14, 2006 2:27 am
- Forum: C++ Development
- Topic: question about wxSocketBase::Read
- Replies: 2
- Views: 1034
- Mon May 22, 2006 12:02 am
- Forum: C++ Development
- Topic: wxHandleFatalExceptions() ?? What's the caper?
- Replies: 2
- Views: 1081
- Fri May 19, 2006 2:34 am
- Forum: C++ Development
- Topic: wxHandleFatalExceptions() ?? What's the caper?
- Replies: 2
- Views: 1081
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?
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?
- Wed May 17, 2006 1:08 am
- Forum: General Development
- Topic: Compiling wxWidgets on MSW with ODBC
- Replies: 1
- Views: 1016
- Tue May 16, 2006 10:31 pm
- Forum: General Development
- Topic: Compiling wxWidgets on MSW with ODBC
- Replies: 1
- Views: 1016
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...
- Mon Feb 20, 2006 12:59 am
- Forum: C++ Development
- Topic: wxFrame kills app from inside DLL
- Replies: 7
- Views: 2547
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)...
- Sat Feb 18, 2006 12:48 pm
- Forum: C++ Development
- Topic: wxFrame kills app from inside DLL
- Replies: 7
- Views: 2547
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...