Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I integrate ...

Status
Not open for further replies.

ShyFox

Programmer
Mar 22, 2003
210
ES
Hy
Does any of you know how can you integrate wav resources or jpeg/bmp directly into my exe ?
Regards

As I go deeper the road seems to go further. We're just simply pasangers on the road of knowledge.
 
ShyFox

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.
 
ShyFox

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.
 
ShyFox,

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.

-- AirCon --
 
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.

Slighthaze = NULL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top