zeevid Posted October 6, 2005 Share Posted October 6, 2005 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... Link to comment Share on other sites More sharing options...
LxP Posted October 6, 2005 Share Posted October 6, 2005 No problem: fileInstall("location of file when compiling", @tempDir & "\img1.gif") guiCtrlCreatePic(@tempDir & "\img1.gif", 12, 12) ··· fileDelete(@tempDir & "\img1.gif") Link to comment Share on other sites More sharing options...
zeevid Posted October 6, 2005 Author Share Posted October 6, 2005 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!!! Link to comment Share on other sites More sharing options...
somh Posted October 7, 2005 Share Posted October 7, 2005 I thought about this, and using res file should be a good idea ... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now