Solved

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

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

760 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

23 Experts available now in Live!

Get 1:1 Help Now