Qbasicnews.com

Full Version: How I can Attachment images and sounds in the exe file?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Sorry, my english is bad, but i try to make myself clear...

I wanna make the program enclosing images and sounds only one file exe.

How can i store only one file exe?
And wich the commands i use to ready these images and sounds?
thanks
You can't. You can only open them from an exe. (unless you have one of those exe unzippers from the following 2 sources [I think they have those in options somewhere])

Download winzip from www.winzip.com.

A MUCH better program (compression-wise) is called winrar. Search for it on google.com. It's there somewhere. Not all people have winrar though.
Quote:You can't. You can only open them from an exe. (unless you have one of those exe unzippers from the following 2 sources [I think they have those in options somewhere])

Download winzip from www.winzip.com.

A MUCH better program (compression-wise) is called winrar. Search for it on google.com. It's there somewhere. Not all people have winrar though.

Hummm... I think that you didn't understand me.
I want put images and sounds in my exe file to I will be use it, later as a game, understand me?

...as... imagine, one program opened and show for you one picture on the right corner on screen and start to write the left corner on screen, this my example...

But i don't want put out of exe file the picture that will be on screen.

I want make this, put the picture and sounds in exe file.

How can i make this?
Think about it logically... Do you have any computer games?

Do they have any image/sound/data files outside of the actual main executable (EXE) file?

Are they made by majour companies?

If those companies knew of a way to add external files to the EXEs, and if they thought it was the best option, do you think they would?

Answer yourself with logic.
Quote:Think about it logically... Do you have any computer games?

Do they have any image/sound/data files outside of the actual main executable (EXE) file?

Are they made by majour companies?

If those companies knew of a way to add external files to the EXEs, and if they thought it was the best option, do you think they would?

Answer yourself with logic.

Seph, maybe you're right. I forget currently Operation System...
I think if all could be in only file would be guarantee portability of file.

Maybe my idea could be better if exist qbasic for linux. Theres in linux packet running...

But i very hate this... i'm programmer, i'm commander of machine, why can i don't make it? I'm worried with the thought of others personals and big game's companies ...

anyway, thankx seph
in an archive (.ZIP file) and distribute just one file. (That's the "usual" technique.)
Quote:in an archive (.ZIP file) and distribute just one file. (That's the "usual" technique.)

Why don't understand me?

I want not distribute it...

I want to have all file ( pictures, sounds ) in execute file...

It's that all i want.
My best guess would to be append it and read from your own exe file after a certain point (you'd have to store it in a variable and change it after you compile it and check), but i have no earthly clue how not to get dos to read it as instructions
not to interprete it as instructions. The .EXE header tells DOS what to do with the file. (But I'm going to perform an experiment in a minute.)

Well, it didn't work this time, but it did the last time I tried it. The last time might have been dumb luck. (And I don't get any kind of luck very often, and I guess I'm not due again yet.)
If I recall correctly, the BWSB mod-playing library (Bells Whistles and Sound Boards) came with a utility to store a mod within an exe. I think the included setup.exe could play some mod music to test your settings without any external files.

I'm not sure how it works, but it shows that it is possible.
Pages: 1 2 3