[Iup-users] IupLoadImage causing Seg Fault for me

Jeremy Cowgar jeremy at cowgar.com
Wed Oct 10 12:45:55 GMT+3 2007


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
>   




More information about the iup-users mailing list