Solved

How do you embed pictures, icons, etc into the program as one file?

Posted on 2000-03-03
1
198 Views
Last Modified: 2010-05-02
I want one(1) executeable program such as exprog.exe which will contain all the images and text data without the use of external text and image files.  I want to embed all the data necessary for the program into the EXE file.  

Ex.  If you run EXPROG.EXE in any directory on any computer, the program will execute correctly without searching for other external files.  Everything the program needs i.e. images, icons, sound files are already embedded in the EXE file.

0
Comment
Question by:steveyi2000
1 Comment
 
LVL 3

Accepted Solution

by:
paulstamp earned 30 total points
ID: 2580494
Resource Files are exactly what you are looking for.

VB6 (and 5 I think) come with a resource file editor add-in to allow you to store bitmaps, icons and text, which then get compiled into the EXE.

You reference your resources within the file using LoadResString, LoadResPicture etc.

This should sort you out.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question