Sign in to follow this  
Followers 0
zeevid

Include Graphic files in the Compiled Program

4 posts in this topic

I want to create a toolbar with a number of icon files. My application also uses graphics (pictures).

Is there a way to have the compiler include the graphic files in the compile and reference these graphic files instead of listing the location of each graphic or icon on a hard drive? I only want to send the executable, not all of the other files needed to support it...

Share this post


Link to post
Share on other sites



No problem:

fileInstall("location of file when compiling", @tempDir & "\img1.gif")
guiCtrlCreatePic(@tempDir & "\img1.gif", 12, 12)
···
fileDelete(@tempDir & "\img1.gif")

Share this post


Link to post
Share on other sites

No problem:

fileInstall("location of file when compiling", @tempDir & "\img1.gif")
guiCtrlCreatePic(@tempDir & "\img1.gif", 12, 12)
···
fileDelete(@tempDir & "\img1.gif")
This assumes that the user has access to the original location of the images. What if I want to distribute the program to people that do not have access to my computer or servers? How do I create a resource file that contains the images and that is imbedded into the .exe that is created by the compile?

This assumes that the user has access to the original location of the images. What if I want to distribute the program to people that do not have access to my computer or servers? How do I create a resource file that contains the images and that is imbedded into the .exe that is created by the compile?

Nevermind. I understand the FileInstall process. It just seems like there should be a cleaner way...

Thank you for your assistance!!!

Share this post


Link to post
Share on other sites

I thought about this, and using res file should be a good idea ...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0