LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2009, 11:16 PM   #1
nasr-noor
LQ Newbie
 
Registered: Aug 2005
Posts: 15
Blog Entries: 1

Rep: Reputation: 0
Question 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?
 
Old 06-16-2009, 11:05 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,430

Rep: Reputation: 203Reputation: 203Reputation: 203
usually in X you can add picture resources in a header file.
 
Old 06-16-2009, 12:17 PM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,530

Rep: Reputation: 110Reputation: 110
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.
 
Old 06-16-2009, 01:19 PM   #4
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,430

Rep: Reputation: 203Reputation: 203Reputation: 203
yep that's what I meant.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto convert bin file to a executable DOS file lilzz Linux - Newbie 5 08-04-2006 12:03 AM
How can I add custom data to my executable bestofmed Programming 3 07-29-2004 03:24 AM
Linux Executable File Help (created from a .c file) MattG1981 Linux - Newbie 7 06-06-2004 04:54 PM
why/what's the difference between a file and an executable? sunowww General 6 06-05-2004 04:20 PM
how to install an executable file props666999 Slackware 4 05-29-2004 03:50 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration