Can you explain what "intergrate" means? Include them in your project and right-mouse on them and set them to "include" to compile them with the executable.
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.
Hy Mike
I want that a resource to be compiled directly into my exe.
And never see it into my directories.
I use some small wavs for my appclosing and opening but when I run the app it says that it doesn't find the resources ???
Regards
As I go deeper the road seems to go further. We're just simply pasangers on the road of knowledge.
Then I would suggest you distribute them separatly. I'm not sure that a .wav file compiled in an exe will play, since it is already a compressed files and if it is compiled in the exe, it will have no chance to decompile itself.
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.
If you want to include wave file, put it under "Other->Text Files". But it is not treated as resource file, just a file (text/string file). So you have to read it (FileToStr) and write it into disk (StrToFile) then you can use that file
When you use StrToFile() and write in the same folder with the exe, don't use the same name. Otherwise it will fail.
I usually put that sort of stuff in a table in a binary memo field if I don't want it shipped as extra files...then I can write it from the field to the windows temp folder and use them from there...the reason I do this is that General Fields bloat terribly when dealing with images and also when it is compiled into the exe that just adds to the size of the executable...granted those files are on the back end of the exe, but it still uses more resources. When I want to change files I just have to deal with deleting a record from the table that holds the extra files and add in a new one. I don't have to redistribute the exe with the update if I don't want to... plus I can give the user a GUI to allow them to change them...such as a logo on reports, send the application out with a generic logo and let organizations import their own. Well enough of my drivel.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.