[Iup-users] IupLoadImage causing Seg Fault for me
Antonio Scuri
scuri at tecgraf.puc-rio.br
Wed Oct 10 13:45:52 GMT+3 2007
IM is implement in C++, so even with a C API you must link your
application with g++.
This should not affect your application. And you don't need to know
anything about C++.
Best,
scuri
> -----Original Message-----
> From: iup-users-bounces at lists.luaforge.net
> [mailto:iup-users-bounces at lists.luaforge.net] On Behalf Of
> Jeremy Cowgar
> Sent: quarta-feira, 10 de outubro de 2007 12:46
> To: IUP discussion list.
> Subject: Re: [Iup-users] IupLoadImage causing Seg Fault for me
>
> I do have one more question about this. Up until this point I
> have been building and linking w/gcc. Now, once I include the
> im lib, it seems I have to link with g++?
>
> I have not done much w/C++. What does this do adversely to my
> app? Anything?
>
> Jeremy
>
> Jeremy Cowgar wrote:
> > Hm. Things have a way of working much better when you use them
> > correctly :-)
> >
> > Thanks! All working great now.
> >
> > Jeremy
> >
> > Antonio Scuri wrote:
> >
> >>
> >> IupLoadImage returns an image, that is a resource not a control.
> >>
> >> You must add a control like label or button, then associate the
> >> image to the control. Can use for instance:
> >>
> >> IupSetAttributeHandle(label, "IMAGE", IupLoadImage
> >> ("support/logo.png"));
> >>
> >> This will run even if IupLoadImage fails.
> >>
> >>
> >
> >
> > _______________________________________________
> > iup-users mailing list
> > iup-users at lists.luaforge.net
> > http://lists.luaforge.net/cgi-bin/mailman/listinfo/iup-users
> >
>
>
> _______________________________________________
> iup-users mailing list
> iup-users at lists.luaforge.net
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/iup-users
>
More information about the iup-users
mailing list