How do I
Wav and Mp3 to resource file and back?
Printable View
How do I
Wav and Mp3 to resource file and back?
what kind of resource file?
Shows how little I know...
I put all of my bmp's into a resource file so I
thought it would be good to put my sounds into one.
Is this not a good way?
No, because there are functions to get bitmaps from resources, while for sounds, it would be a custom binary resource, and you would have to know how to extract all of that data from the resource, stick it on disk, then load it, or know how to play the sound from memory.
You should usually load all of your data from disk, because resources increase executable size (its sticking your iamge data at the end of the executable's code), and making it more difficult for you to edit the data.
Z.
Thanks alot
guess that clears that up...
makes it easier too. :D
I have all the sounds in with "Direct Sound"
VB Rules.......
Ok, I meant if you mean the resources that are directly put into the exe. I didn't know this is possible in VB
I just added the wav files to the cab file so they
get extracted into the base directory when the
program installes.
how do i add sound fiel to a cab directory
and then how to i make an install program for Vb or egt one
Use the "package and deployment wizard" ...
Thats the only way I know how to do it.
where do i find a package and deployment wizard
In your start menu.
Microsoft Visual Studio 6.0 -> Microsoft Visual Studio 6.0 Tools -> Package & Deployment Wizard
Or something like that, it depends on you configuration I guess... You should be able to find it
can u please explain how to do it becouse i ahve no idea
Trav - Click on Add-Ins-->Add-In Manager. Then select the Package And Deployment Wizard from the list, click OK, and once more click on Add-Ins-->Package&Deployment Wizard.
The wizard will guide you through everything else.