LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to add Resource in executable file? (https://www.linuxquestions.org/questions/programming-9/how-to-add-resource-in-executable-file-732951/)

nasr-noor 06-14-2009 11:16 PM

How to add Resource in executable file?
 
Hi all,
I have a project in eclipse,my project has some pictures.
I want to add my pictures to project like MS visual studio Resource and at the end I have one file that is executable plus resource, Not an executable and some picture file.
How can I do this in eclipse or manually?

bigearsbilly 06-16-2009 11:05 AM

usually in X you can add picture resources in a header file.

Hko 06-16-2009 12:17 PM

AFAIK this is not common practice in the Unix/Linux world to embed binary data in executable files.

Though it is possible with e.g. XPM bitmap file format, which actually consists of compilable C code. You will need to use a library that handles the XPM format, but they will not be hard to find I think.

bigearsbilly 06-16-2009 01:19 PM

yep that's what I meant.


All times are GMT -5. The time now is 12:39 AM.