Solved

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

Posted on 2000-03-03
1
197 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now