Search found 109 matches

by ssigala
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: 3164

kornerr wrote: But when I run app, I see the warning:

Code: Select all

No image handler for type 15 defined.
and there's no image at the button.
Maybe your wxWidgets library has no PNG support compiled in?
by ssigala
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: 3164

I've run bin2c, but I still can't use this "c image" in wxBitmapButton: wxBitmapButton *btn = new wxBitmapButton (this, -1, wxImage (c_image)); You should do something like: wxMemoryInputStream istream(c_image, sizeof c_image); wxImage myimage(istream, wxBITMAP_TYPE_PNG); wxBitmapButton *...
by ssigala
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: 3164

Re: How to compile PNG into exec to use it in wxIcon as XPM?

kornerr wrote: How to do the same thing with PNG? Or other format?
You should find enough information at:
http://wiki.wxwidgets.org/wiki.pl?Embedding_PNG_Images
by ssigala
Mon Jan 09, 2006 4:25 pm
Forum: C++ Development
Topic: Need help using OpenGL
Replies: 4
Views: 1598

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...
by ssigala
Mon Jan 09, 2006 10:42 am
Forum: C++ Development
Topic: (new MyRawBitmapFrame(this))->Show();
Replies: 2
Views: 994

Sorry, but I don't understand your question. The line:

Code: Select all

(new MyRawBitmapFrame(this))->Show();
is valid C++ code. This is exactly the same as writing:

Code: Select all

MyRawBitmapFrame *p = new MyRawBitmapFrame(this);
p->Show();
But I agree that the former is not (IMHO) good readable style.
by ssigala
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: 1293

I don't know if this can help you, but there it a Firefox extension named "ScreenGrab" witch does exactly what you want.

Regards,
Sandro
by ssigala
Thu Oct 06, 2005 10:43 am
Forum: C++ Development
Topic: 12 bytes Memleak when deleting a *wxBitmap() ?
Replies: 6
Views: 2391

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;
by ssigala
Mon Sep 19, 2005 8:58 am
Forum: General Development
Topic: License question
Replies: 6
Views: 1845

the ear wrote:Thank you both!

The wxWidgets developers will still be mentioned in my help files, because I would feel kind of guilty if I didn't mention them ;)
If you want, you might also add a link to the wxWidgets page with a button:

Image
by ssigala
Wed Sep 14, 2005 6:32 pm
Forum: wxDev-C++
Topic: Makefile is 'screwed up' sometimes
Replies: 24
Views: 6124

Re: Makefile is 'screwed up' sometimes

GeertVc wrote: Anyone had the same experience?
It reminds me when you don't remember to add the terminating null character to a string, e.g.:

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
by ssigala
Tue Sep 13, 2005 1:24 pm
Forum: Compiler / Linking / IDE Related
Topic: Linking problem
Replies: 3
Views: 1352

Micha wrote: Now , i got the last two messages...
Are you sure you did compile your application with the same flags you used for compiling the wx library?
by ssigala
Tue Sep 13, 2005 1:22 pm
Forum: C++ Development
Topic: use wxXmlResource as an XML parser ?
Replies: 21
Views: 6172

Re: use wxXmlResource as an XML parser ?

baert wrote:Hi,
I just need a small xml parser in my app,
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).
by ssigala
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: 1123

Re: VS7.0 and wx2.6.1: configurations never up-to-date

BigBulle wrote: If I change somtehing in my project, I have to rebuild all my solution and this is a huge waste of time...
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.
by ssigala
Tue Sep 13, 2005 1:13 pm
Forum: C++ Development
Topic: Anyone can explain me drag&drop with wxDataObject ?
Replies: 1
Views: 1115

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...
by ssigala
Mon Sep 12, 2005 11:38 am
Forum: C++ Development
Topic: what's the difference between wxFile and wxFFile?
Replies: 3
Views: 1897

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...
by ssigala
Mon Sep 12, 2005 11:12 am
Forum: General Development
Topic: How to store a double xplatform?
Replies: 4
Views: 1691

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...