Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2000-03-03
1
Medium Priority
?
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
paulstamp earned 120 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…
Suggested Courses

636 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