Maybe your wxWidgets library has no PNG support compiled in?kornerr wrote: But when I run app, I see the warning:and there's no image at the button.Code: Select all
No image handler for type 15 defined.
Search found 109 matches
- Sat Jan 14, 2006 1:04 pm
- Forum: General Development
- Topic: How to compile PNG into exec to use it in wxIcon as XPM?
- Replies: 9
- Views: 3219
- Thu Jan 12, 2006 2:12 pm
- Forum: General Development
- Topic: How to compile PNG into exec to use it in wxIcon as XPM?
- Replies: 9
- Views: 3219
- Wed Jan 11, 2006 4:42 pm
- Forum: General Development
- Topic: How to compile PNG into exec to use it in wxIcon as XPM?
- Replies: 9
- Views: 3219
Re: How to compile PNG into exec to use it in wxIcon as XPM?
You should find enough information at:kornerr wrote: How to do the same thing with PNG? Or other format?
http://wiki.wxwidgets.org/wiki.pl?Embedding_PNG_Images
- Mon Jan 09, 2006 4:25 pm
- Forum: C++ Development
- Topic: Need help using OpenGL
- Replies: 4
- Views: 1610
Thanks for writing back. First off, all those text controls are for user inputs. My program involves them inputting the elements of up to 4 4x4 matrices. So basically you have a bunch of grids of text inputs. Is there a simpler way of doing that than I have? I think that your job will be easier usi...
- Mon Jan 09, 2006 10:42 am
- Forum: C++ Development
- Topic: (new MyRawBitmapFrame(this))->Show();
- Replies: 2
- Views: 1017
Sorry, but I don't understand your question. The line:
is valid C++ code. This is exactly the same as writing:
But I agree that the former is not (IMHO) good readable style.
Code: Select all
(new MyRawBitmapFrame(this))->Show();
Code: Select all
MyRawBitmapFrame *p = new MyRawBitmapFrame(this);
p->Show();
- Fri Jan 06, 2006 12:00 pm
- Forum: Open Discussion
- Topic: Looking for a wxW program i found b4 for web-conversion to..
- Replies: 1
- Views: 1322
- Thu Oct 06, 2005 10:43 am
- Forum: C++ Development
- Topic: 12 bytes Memleak when deleting a *wxBitmap() ?
- Replies: 6
- Views: 2418
Re: 12 bytes Memleak when deleting a *wxBitmap() ?
Perhaps you should also deallocate the structure for each bitmap: for (i=0; i<G_D_Number_Bitmaps_created; i++) { delete G_Bitmap[i]->bitm; G_Bitmap[i]->bitm = NULL; delete g_Bitmap[i]; <------ here g_Bitmap[i] = NULL; } delete[] G_Bitmap;
- Mon Sep 19, 2005 8:58 am
- Forum: General Development
- Topic: License question
- Replies: 6
- Views: 1933
- Wed Sep 14, 2005 6:32 pm
- Forum: wxDev-C++
- Topic: Makefile is 'screwed up' sometimes
- Replies: 24
- Views: 6260
Re: Makefile is 'screwed up' sometimes
It reminds me when you don't remember to add the terminating null character to a string, e.g.:GeertVc wrote: Anyone had the same experience?
Code: Select all
char buf[128], *s;
s = "some text";
char *p = buf;
while ((*p++ = *s++) != '\0')
;
printf("%s\n", buf); // prints some text + garbage
- Tue Sep 13, 2005 1:24 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Linking problem
- Replies: 3
- Views: 1375
- Tue Sep 13, 2005 1:22 pm
- Forum: C++ Development
- Topic: use wxXmlResource as an XML parser ?
- Replies: 21
- Views: 6273
Re: use wxXmlResource as an XML parser ?
I strongly suggest TinyXML. It it very small, well documented and very well written (you can customize it after 5 minutes of reading the code).baert wrote:Hi,
I just need a small xml parser in my app,
- Tue Sep 13, 2005 1:17 pm
- Forum: Compiler / Linking / IDE Related
- Topic: VS7.0 and wx2.6.1: configurations never up-to-date
- Replies: 2
- Views: 1139
Re: VS7.0 and wx2.6.1: configurations never up-to-date
You mean that you have included the wx library project in your solution? I suggest you remove that dependency and add the proper include/link flags to the compiler.BigBulle wrote: If I change somtehing in my project, I have to rebuild all my solution and this is a huge waste of time...
- Tue Sep 13, 2005 1:13 pm
- Forum: C++ Development
- Topic: Anyone can explain me drag&drop with wxDataObject ?
- Replies: 1
- Views: 1191
Re: Anyone can explain me drag&drop with wxDataObject ?
// this cannot work: wxLogDebug(wxT("Set Data buf: %s"),*((wxString*)buf)); // here i can't access buf // you cannot pass a wxString when a (char *) is expected: wxLogDebug(wxT("Set Data buf: %s"),((wxString*)buf)->c_str()); // *should* work // ... wxLogDebug(wxT("GetDataHe...
- Mon Sep 12, 2005 11:38 am
- Forum: C++ Development
- Topic: what's the difference between wxFile and wxFFile?
- Replies: 3
- Views: 1984
Re: for example?
in which case I should use wxFFile? is its performance better? thanks wxFile wraps around "classic unix" i/o style functions, i.e. open(), close(), read(), write() etc. wxFFile wraps around standard C i/o, i.e. fopen(), fclose(), fread(), fwrite() etc. The standard C functions provide nat...
- Mon Sep 12, 2005 11:12 am
- Forum: General Development
- Topic: How to store a double xplatform?
- Replies: 4
- Views: 1759
Re: How to store a double xplatform?
Hi guys, I am busy with a rewrite from my old serializer (SIO) to wxArchive, which will be the counter part of MFC's CArchive. I want to store all values as x-platform as possible meaning binary compatible so that serialized files can be opened on linux, MAC and Windows without binary incompatibili...